@gridsuite/commons-ui 0.64.0 → 0.64.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/components/CustomAGGrid/custom-aggrid.d.ts +1 -1
  2. package/dist/components/DirectoryItemSelector/directory-item-selector.d.ts +2 -2
  3. package/dist/components/ElementSearchDialog/index.d.ts +1 -0
  4. package/dist/components/ExpandableGroup/expandable-group.d.ts +2 -2
  5. package/dist/components/ExpandableGroup/index.d.ts +1 -0
  6. package/dist/components/FlatParameters/index.d.ts +1 -0
  7. package/dist/components/MuiVirtualizedTable/index.d.ts +2 -1
  8. package/dist/components/MuiVirtualizedTable/index.js +4 -1
  9. package/dist/components/MultipleSelectionDialog/index.d.ts +1 -0
  10. package/dist/components/OverflowableText/index.d.ts +1 -0
  11. package/dist/components/ReportViewer/index.d.ts +1 -0
  12. package/dist/components/ReportViewerDialog/index.d.ts +1 -0
  13. package/dist/components/TopBar/index.d.ts +1 -0
  14. package/dist/components/dialogs/custom-mui-dialog.d.ts +2 -2
  15. package/dist/components/dialogs/description-modification-dialog.d.ts +2 -2
  16. package/dist/components/filter/criteria-based/criteria-based-filter-edition-dialog.d.ts +2 -2
  17. package/dist/components/filter/explicit-naming/explicit-naming-filter-edition-dialog.d.ts +2 -2
  18. package/dist/components/inputs/react-hook-form/ExpandingTextField.d.ts +1 -1
  19. package/dist/components/inputs/react-hook-form/ag-grid-table/csv-uploader/csv-uploader.d.ts +2 -2
  20. package/dist/components/inputs/react-hook-form/description-field.js +1 -1
  21. package/dist/components/inputs/react-hook-form/error-management/field-error-alert.d.ts +2 -2
  22. package/dist/components/inputs/react-hook-form/error-management/mid-form-error.d.ts +3 -2
  23. package/dist/components/inputs/react-hook-form/radio-input.d.ts +2 -2
  24. package/dist/components/inputs/react-hook-form/raw-read-only-input.d.ts +3 -2
  25. package/dist/components/inputs/react-hook-form/select-inputs/countries-input.d.ts +2 -2
  26. package/dist/components/inputs/react-hook-form/select-inputs/mui-select-input.d.ts +3 -3
  27. package/dist/components/inputs/react-hook-form/unique-name-input.d.ts +2 -2
  28. package/dist/components/inputs/react-hook-form/utils/field-label.d.ts +1 -1
  29. package/dist/components/inputs/react-query-builder/custom-react-query-builder.d.ts +2 -2
  30. package/dist/components/inputs/select-clearable.d.ts +2 -2
  31. package/dist/index.d.ts +50 -8
  32. package/package.json +1 -1
@@ -5,7 +5,7 @@ interface CustomAGGGridStyleProps {
5
5
  shouldHidePinnedHeaderRightBorder?: boolean;
6
6
  showOverlay?: boolean;
7
7
  }
8
- interface CustomAGGridProps extends AgGridReactProps, CustomAGGGridStyleProps {
8
+ export interface CustomAGGridProps extends AgGridReactProps, CustomAGGGridStyleProps {
9
9
  }
10
10
  declare const CustomAGGrid: React.ForwardRefExoticComponent<CustomAGGridProps & React.RefAttributes<AgGridReact<any>>>;
11
11
  export default CustomAGGrid;
@@ -1,7 +1,7 @@
1
1
  import { TreeViewFinderProps } from '../TreeViewFinder/TreeViewFinder';
2
2
  import { UUID } from 'crypto';
3
3
 
4
- interface DirectoryItemSelectorProps extends TreeViewFinderProps {
4
+ export interface DirectoryItemSelectorProps extends TreeViewFinderProps {
5
5
  open: boolean;
6
6
  types: string[];
7
7
  equipmentTypes?: string[];
@@ -17,5 +17,5 @@ interface DirectoryItemSelectorProps extends TreeViewFinderProps {
17
17
  multiselect?: boolean;
18
18
  expanded?: UUID[];
19
19
  }
20
- declare function DirectoryItemSelector({ open, types, equipmentTypes, itemFilter, expanded, ...otherTreeViewFinderProps }: DirectoryItemSelectorProps): import("react/jsx-runtime").JSX.Element;
20
+ declare function DirectoryItemSelector({ open, types, equipmentTypes, itemFilter, expanded, ...otherTreeViewFinderProps }: Readonly<DirectoryItemSelectorProps>): import("react/jsx-runtime").JSX.Element;
21
21
  export default DirectoryItemSelector;
@@ -5,6 +5,7 @@
5
5
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
6
  */
7
7
  export { default as ElementSearchDialog } from './element-search-dialog';
8
+ export type { ElementSearchDialogProps } from './element-search-dialog';
8
9
  export { default as TagRenderer } from './tag-renderer';
9
10
  export type { TagRendererProps } from './tag-renderer';
10
11
  export { ElementSearchInput } from './element-search-input';
@@ -29,8 +29,8 @@ export declare const styles: {
29
29
  padding: number;
30
30
  };
31
31
  };
32
- interface ExpandableGroupProps extends PropsWithChildren {
32
+ export interface ExpandableGroupProps extends PropsWithChildren {
33
33
  renderHeader: ReactNode;
34
34
  }
35
- declare function ExpandableGroup({ renderHeader, children }: ExpandableGroupProps): import("react/jsx-runtime").JSX.Element;
35
+ declare function ExpandableGroup({ renderHeader, children }: Readonly<ExpandableGroupProps>): import("react/jsx-runtime").JSX.Element;
36
36
  export default ExpandableGroup;
@@ -1,3 +1,4 @@
1
1
  import { default as ExpandableGroup } from './expandable-group';
2
2
 
3
3
  export default ExpandableGroup;
4
+ export type { ExpandableGroupProps } from './expandable-group';
@@ -1,3 +1,4 @@
1
1
  import { default as defaultFlatParameters } from './FlatParameters';
2
2
 
3
3
  export default defaultFlatParameters;
4
+ export type { FlatParametersProps, Parameter } from './FlatParameters';
@@ -4,5 +4,6 @@
4
4
  * License, v. 2.0. If a copy of the MPL was not distributed with this
5
5
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
6
  */
7
- export { default as MuiVirtualizedTable, generateMuiVirtualizedTableClass } from './MuiVirtualizedTable';
7
+ export { default as MuiVirtualizedTable, generateMuiVirtualizedTableClass, DEFAULT_CELL_PADDING, DEFAULT_HEADER_HEIGHT, DEFAULT_ROW_HEIGHT, } from './MuiVirtualizedTable';
8
+ export type { MuiVirtualizedTableProps, CustomColumnProps, RowProps } from './MuiVirtualizedTable';
8
9
  export { KeyedColumnsRowIndexer, ChangeWays } from './KeyedColumnsRowIndexer';
@@ -1,7 +1,10 @@
1
- import { default as default2, generateMuiVirtualizedTableClass } from "./MuiVirtualizedTable.js";
1
+ import { DEFAULT_CELL_PADDING, DEFAULT_HEADER_HEIGHT, DEFAULT_ROW_HEIGHT, default as default2, generateMuiVirtualizedTableClass } from "./MuiVirtualizedTable.js";
2
2
  import { ChangeWays, KeyedColumnsRowIndexer } from "./KeyedColumnsRowIndexer.js";
3
3
  export {
4
4
  ChangeWays,
5
+ DEFAULT_CELL_PADDING,
6
+ DEFAULT_HEADER_HEIGHT,
7
+ DEFAULT_ROW_HEIGHT,
5
8
  KeyedColumnsRowIndexer,
6
9
  default2 as MuiVirtualizedTable,
7
10
  generateMuiVirtualizedTableClass
@@ -1,3 +1,4 @@
1
1
  import { default as defaultMultipleSelectionDialog } from './MultipleSelectionDialog';
2
2
 
3
3
  export default defaultMultipleSelectionDialog;
4
+ export type { MultipleSelectionDialogProps } from './MultipleSelectionDialog';
@@ -1,3 +1,4 @@
1
1
  import { default as defaultOverflowableText } from './overflowable-text';
2
2
 
3
3
  export default defaultOverflowableText;
4
+ export type { OverflowableTextProps } from './overflowable-text';
@@ -1,3 +1,4 @@
1
1
  import { default as defaultReportViewer } from './report-viewer';
2
2
 
3
3
  export default defaultReportViewer;
4
+ export type { ReportViewerProps } from './report-viewer';
@@ -1,3 +1,4 @@
1
1
  import { default as defaultReportViewerDialog } from './report-viewer-dialog';
2
2
 
3
3
  export default defaultReportViewerDialog;
4
+ export type { ReportViewerDialogProps } from './report-viewer-dialog';
@@ -5,5 +5,6 @@
5
5
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
6
  */
7
7
  export { default as TopBar } from './TopBar';
8
+ export type { TopBarProps } from './TopBar';
8
9
  export * from './GridLogo';
9
10
  export { default as AboutDialog } from './AboutDialog';
@@ -3,7 +3,7 @@ import { FieldErrors, UseFormReturn } from 'react-hook-form';
3
3
  import { default as React } from 'react';
4
4
 
5
5
  import * as yup from 'yup';
6
- interface ICustomMuiDialog {
6
+ export interface CustomMuiDialogProps {
7
7
  open: boolean;
8
8
  formSchema: yup.AnySchema;
9
9
  formMethods: UseFormReturn<any> | MergedFormContextProps;
@@ -19,5 +19,5 @@ interface ICustomMuiDialog {
19
19
  language?: string;
20
20
  confirmationMessageKey?: string;
21
21
  }
22
- declare function CustomMuiDialog({ open, formSchema, formMethods, onClose, onSave, isDataFetching, onValidationError, titleId, disabledSave, removeOptional, onCancel, children, language, confirmationMessageKey, }: ICustomMuiDialog): import("react/jsx-runtime").JSX.Element;
22
+ declare function CustomMuiDialog({ open, formSchema, formMethods, onClose, onSave, isDataFetching, onValidationError, titleId, disabledSave, removeOptional, onCancel, children, language, confirmationMessageKey, }: Readonly<CustomMuiDialogProps>): import("react/jsx-runtime").JSX.Element;
23
23
  export default CustomMuiDialog;
@@ -4,12 +4,12 @@
4
4
  * License, v. 2.0. If a copy of the MPL was not distributed with this
5
5
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
6
  */
7
- export interface IDescriptionModificationDialog {
7
+ export interface DescriptionModificationDialogProps {
8
8
  elementUuid: string;
9
9
  description: string;
10
10
  open: boolean;
11
11
  onClose: () => void;
12
12
  updateElement: (uuid: string, data: Record<string, string>) => Promise<void>;
13
13
  }
14
- declare function DescriptionModificationDialog({ elementUuid, description, open, onClose, updateElement, }: IDescriptionModificationDialog): import("react/jsx-runtime").JSX.Element;
14
+ declare function DescriptionModificationDialog({ elementUuid, description, open, onClose, updateElement, }: Readonly<DescriptionModificationDialogProps>): import("react/jsx-runtime").JSX.Element;
15
15
  export default DescriptionModificationDialog;
@@ -9,7 +9,7 @@ export type SelectionCopy = {
9
9
  parentDirectoryUuid: UUID | null;
10
10
  };
11
11
  export declare const noSelectionForCopy: SelectionCopy;
12
- interface CriteriaBasedFilterEditionDialogProps {
12
+ export interface CriteriaBasedFilterEditionDialogProps {
13
13
  id: string;
14
14
  name: string;
15
15
  titleId: string;
@@ -23,5 +23,5 @@ interface CriteriaBasedFilterEditionDialogProps {
23
23
  elementExists?: ElementExistsType;
24
24
  language?: string;
25
25
  }
26
- declare function CriteriaBasedFilterEditionDialog({ id, name, titleId, open, onClose, broadcastChannel, getFilterById, selectionForCopy, setSelelectionForCopy, activeDirectory, elementExists, language, }: CriteriaBasedFilterEditionDialogProps): import("react/jsx-runtime").JSX.Element;
26
+ declare function CriteriaBasedFilterEditionDialog({ id, name, titleId, open, onClose, broadcastChannel, getFilterById, selectionForCopy, setSelelectionForCopy, activeDirectory, elementExists, language, }: Readonly<CriteriaBasedFilterEditionDialogProps>): import("react/jsx-runtime").JSX.Element;
27
27
  export default CriteriaBasedFilterEditionDialog;
@@ -1,7 +1,7 @@
1
1
  import { ElementExistsType } from '../../../utils/ElementType';
2
2
  import { UUID } from 'crypto';
3
3
 
4
- interface ExplicitNamingFilterEditionDialogProps {
4
+ export interface ExplicitNamingFilterEditionDialogProps {
5
5
  id: string;
6
6
  name: string;
7
7
  titleId: string;
@@ -15,5 +15,5 @@ interface ExplicitNamingFilterEditionDialogProps {
15
15
  elementExists?: ElementExistsType;
16
16
  language?: string;
17
17
  }
18
- declare function ExplicitNamingFilterEditionDialog({ id, name, titleId, open, onClose, broadcastChannel, selectionForCopy, setSelectionForCopy, getFilterById, activeDirectory, elementExists, language, }: ExplicitNamingFilterEditionDialogProps): import("react/jsx-runtime").JSX.Element;
18
+ declare function ExplicitNamingFilterEditionDialog({ id, name, titleId, open, onClose, broadcastChannel, selectionForCopy, setSelectionForCopy, getFilterById, activeDirectory, elementExists, language, }: Readonly<ExplicitNamingFilterEditionDialogProps>): import("react/jsx-runtime").JSX.Element;
19
19
  export default ExplicitNamingFilterEditionDialog;
@@ -1,7 +1,7 @@
1
1
  import { TextInputProps } from './text-input';
2
2
  import { TextFieldProps } from '@mui/material';
3
3
 
4
- interface ExpandingTextFieldProps extends TextInputProps {
4
+ export interface ExpandingTextFieldProps extends TextInputProps {
5
5
  name: string;
6
6
  maxCharactersNumber?: number;
7
7
  rows?: number;
@@ -4,7 +4,7 @@
4
4
  * License, v. 2.0. If a copy of the MPL was not distributed with this
5
5
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
6
  */
7
- interface CsvUploaderProps {
7
+ export interface CsvUploaderProps {
8
8
  name: string;
9
9
  onClose: () => void;
10
10
  open: true;
@@ -16,5 +16,5 @@ interface CsvUploaderProps {
16
16
  getDataFromCsv: any;
17
17
  useFieldArrayOutput: any;
18
18
  }
19
- declare function CsvUploader({ name, onClose, open, title, fileHeaders, fileName, csvData, validateData, getDataFromCsv, useFieldArrayOutput, }: CsvUploaderProps): import("react/jsx-runtime").JSX.Element;
19
+ declare function CsvUploader({ name, onClose, open, title, fileHeaders, fileName, csvData, validateData, getDataFromCsv, useFieldArrayOutput, }: Readonly<CsvUploaderProps>): import("react/jsx-runtime").JSX.Element;
20
20
  export default CsvUploader;
@@ -12,10 +12,10 @@ function DescriptionField() {
12
12
  const { setValue } = useFormContext();
13
13
  const handleOpenDescription = () => {
14
14
  setIsDescriptionFieldVisible(true);
15
- setValue(FieldConstants.DESCRIPTION, "");
16
15
  };
17
16
  const handleCloseDescription = () => {
18
17
  setIsDescriptionFieldVisible(false);
18
+ setValue(FieldConstants.DESCRIPTION, "");
19
19
  };
20
20
  return /* @__PURE__ */ jsx(Box, { children: !isDescriptionFieldVisible ? /* @__PURE__ */ jsx(Button, { startIcon: /* @__PURE__ */ jsx(AddIcon, {}), onClick: handleOpenDescription, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "AddDescription" }) }) : /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "flex-start" }, children: [
21
21
  /* @__PURE__ */ jsx(
@@ -1,7 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
 
3
- interface FieldErrorAlertProps {
3
+ export interface FieldErrorAlertProps {
4
4
  message: string | React.ReactNode;
5
5
  }
6
- declare function FieldErrorAlert({ message }: FieldErrorAlertProps): import("react/jsx-runtime").JSX.Element;
6
+ declare function FieldErrorAlert({ message }: Readonly<FieldErrorAlertProps>): import("react/jsx-runtime").JSX.Element;
7
7
  export default FieldErrorAlert;
@@ -1,6 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
2
 
3
- declare function MidFormError({ message }: {
3
+ export type MidFormErrorProps = {
4
4
  message: string | ReactNode;
5
- }): import("react/jsx-runtime").JSX.Element;
5
+ };
6
+ declare function MidFormError({ message }: Readonly<MidFormErrorProps>): import("react/jsx-runtime").JSX.Element;
6
7
  export default MidFormError;
@@ -4,12 +4,12 @@ type RadioOptions = Array<{
4
4
  id: string;
5
5
  label: string;
6
6
  }>;
7
- interface RadioInputProps {
7
+ export interface RadioInputProps {
8
8
  name: string;
9
9
  label?: string;
10
10
  id?: string;
11
11
  options: RadioOptions;
12
12
  formProps?: Omit<RadioGroupProps, 'value'>;
13
13
  }
14
- declare function RadioInput({ name, label, id, options, formProps }: RadioInputProps): import("react/jsx-runtime").JSX.Element;
14
+ declare function RadioInput({ name, label, id, options, formProps }: Readonly<RadioInputProps>): import("react/jsx-runtime").JSX.Element;
15
15
  export default RadioInput;
@@ -4,7 +4,8 @@
4
4
  * License, v. 2.0. If a copy of the MPL was not distributed with this
5
5
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
6
  */
7
- declare function RawReadOnlyInput({ name }: {
7
+ export type RawReadOnlyInputProps = {
8
8
  name: string;
9
- }): any;
9
+ };
10
+ declare function RawReadOnlyInput({ name }: Readonly<RawReadOnlyInputProps>): any;
10
11
  export default RawReadOnlyInput;
@@ -1,6 +1,6 @@
1
- interface CountryInputProps {
1
+ export interface CountryInputProps {
2
2
  name: string;
3
3
  label: string;
4
4
  }
5
- declare function CountriesInput({ name, label }: CountryInputProps): import("react/jsx-runtime").JSX.Element;
5
+ declare function CountriesInput({ name, label }: Readonly<CountryInputProps>): import("react/jsx-runtime").JSX.Element;
6
6
  export default CountriesInput;
@@ -1,11 +1,11 @@
1
1
  import { SelectProps } from '@mui/material';
2
2
 
3
- interface MuiSelectInputProps {
3
+ export type MuiSelectInputProps = SelectProps & {
4
4
  name: string;
5
5
  options: {
6
6
  id: string;
7
7
  label: string;
8
8
  }[];
9
- }
10
- declare function MuiSelectInput({ name, options, ...props }: MuiSelectInputProps & SelectProps): import("react/jsx-runtime").JSX.Element;
9
+ };
10
+ declare function MuiSelectInput({ name, options, ...props }: MuiSelectInputProps): import("react/jsx-runtime").JSX.Element;
11
11
  export default MuiSelectInput;
@@ -2,7 +2,7 @@ import { ElementExistsType, ElementType } from '../../../utils/ElementType';
2
2
  import { UUID } from 'crypto';
3
3
  import { TextFieldProps } from '@mui/material';
4
4
 
5
- interface UniqueNameInputProps {
5
+ export interface UniqueNameInputProps {
6
6
  name: string;
7
7
  label?: string;
8
8
  elementType: ElementType;
@@ -15,5 +15,5 @@ interface UniqueNameInputProps {
15
15
  /**
16
16
  * Input component that constantly check if the field's value is available or not
17
17
  */
18
- declare function UniqueNameInput({ name, label, elementType, autoFocus, onManualChangeCallback, formProps, activeDirectory, elementExists, }: UniqueNameInputProps): import("react/jsx-runtime").JSX.Element;
18
+ declare function UniqueNameInput({ name, label, elementType, autoFocus, onManualChangeCallback, formProps, activeDirectory, elementExists, }: Readonly<UniqueNameInputProps>): import("react/jsx-runtime").JSX.Element;
19
19
  export default UniqueNameInput;
@@ -4,7 +4,7 @@
4
4
  * License, v. 2.0. If a copy of the MPL was not distributed with this
5
5
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
6
  */
7
- type FieldLabelProps = {
7
+ export type FieldLabelProps = {
8
8
  label: string;
9
9
  optional?: boolean;
10
10
  values?: any;
@@ -1,8 +1,8 @@
1
1
  import { Field } from 'react-querybuilder';
2
2
 
3
- interface CustomReactQueryBuilderProps {
3
+ export interface CustomReactQueryBuilderProps {
4
4
  name: string;
5
5
  fields: Field[];
6
6
  }
7
- declare function CustomReactQueryBuilder(props: CustomReactQueryBuilderProps): import("react/jsx-runtime").JSX.Element;
7
+ declare function CustomReactQueryBuilder(props: Readonly<CustomReactQueryBuilderProps>): import("react/jsx-runtime").JSX.Element;
8
8
  export default CustomReactQueryBuilder;
@@ -4,10 +4,10 @@ type SelectOption = {
4
4
  id: string;
5
5
  label?: string;
6
6
  };
7
- interface SelectClearableProps extends Omit<AutocompleteProps<SelectOption, false, false, false>, 'value' | 'onChange' | 'renderInput'> {
7
+ export interface SelectClearableProps extends Omit<AutocompleteProps<SelectOption, false, false, false>, 'value' | 'onChange' | 'renderInput'> {
8
8
  value: string | null;
9
9
  onChange: (value: string | null) => void;
10
10
  label?: string;
11
11
  }
12
- declare function SelectClearable(props: SelectClearableProps): import("react/jsx-runtime").JSX.Element;
12
+ declare function SelectClearable(props: Readonly<SelectClearableProps>): import("react/jsx-runtime").JSX.Element;
13
13
  export default SelectClearable;
package/dist/index.d.ts CHANGED
@@ -5,48 +5,62 @@
5
5
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
6
  */
7
7
  export { TreeViewFinder } from './components/TreeViewFinder';
8
+ export type { TreeViewFinderProps, TreeViewFinderNodeProps } from './components/TreeViewFinder';
8
9
  export { TopBar } from './components/TopBar';
10
+ export type { TopBarProps } from './components/TopBar';
9
11
  export { default as AboutDialog } from './components/TopBar/AboutDialog';
10
- export type { GridSuiteModule } from './components/TopBar/AboutDialog';
12
+ export type { AboutDialogProps, GridSuiteModule } from './components/TopBar/AboutDialog';
11
13
  export { default as SnackbarProvider } from './components/SnackbarProvider';
12
14
  export { default as AuthenticationRouter } from './components/AuthenticationRouter';
13
15
  export type { AuthenticationRouterErrorState, AuthenticationRouterProps, UserManagerState, } from './components/AuthenticationRouter';
14
- export { MuiVirtualizedTable } from './components/MuiVirtualizedTable';
15
- export { KeyedColumnsRowIndexer, ChangeWays } from './components/MuiVirtualizedTable';
16
+ export { MuiVirtualizedTable, KeyedColumnsRowIndexer, ChangeWays, DEFAULT_CELL_PADDING, DEFAULT_HEADER_HEIGHT, DEFAULT_ROW_HEIGHT, } from './components/MuiVirtualizedTable';
17
+ export type { MuiVirtualizedTableProps, CustomColumnProps, RowProps } from './components/MuiVirtualizedTable';
16
18
  export { default as ReportViewer } from './components/ReportViewer';
19
+ export type { ReportViewerProps } from './components/ReportViewer';
17
20
  export { default as ReportViewerDialog } from './components/ReportViewerDialog';
21
+ export type { ReportViewerDialogProps } from './components/ReportViewerDialog';
18
22
  export { default as OverflowableText } from './components/OverflowableText';
23
+ export type { OverflowableTextProps } from './components/OverflowableText';
19
24
  export { ElementSearchDialog } from './components/ElementSearchDialog';
25
+ export type { ElementSearchDialogProps } from './components/ElementSearchDialog';
20
26
  export { default as FlatParameters } from './components/FlatParameters';
27
+ export type { FlatParametersProps, Parameter } from './components/FlatParameters';
21
28
  export { default as ExpandableGroup } from './components/ExpandableGroup';
29
+ export type { ExpandableGroupProps } from './components/ExpandableGroup';
22
30
  export { default as MultipleSelectionDialog } from './components/MultipleSelectionDialog';
31
+ export type { MultipleSelectionDialogProps } from './components/MultipleSelectionDialog';
23
32
  export { default as CustomMuiDialog } from './components/dialogs/custom-mui-dialog';
33
+ export type { CustomMuiDialogProps } from './components/dialogs/custom-mui-dialog';
24
34
  export { default as DescriptionModificationDialog } from './components/dialogs/description-modification-dialog';
35
+ export type { DescriptionModificationDialogProps } from './components/dialogs/description-modification-dialog';
25
36
  export { default as DescriptionField } from './components/inputs/react-hook-form/description-field';
26
37
  export { default as ModifyElementSelection } from './components/dialogs/modify-element-selection';
38
+ export type { ModifyElementSelectionProps } from './components/dialogs/modify-element-selection';
27
39
  export { default as CriteriaBasedForm } from './components/filter/criteria-based/criteria-based-form';
40
+ export type { CriteriaBasedFormProps } from './components/filter/criteria-based/criteria-based-form';
28
41
  export { default as PopupConfirmationDialog } from './components/dialogs/popup-confirmation-dialog';
42
+ export type { PopupConfirmationDialogProps } from './components/dialogs/popup-confirmation-dialog';
29
43
  export { default as BottomRightButtons } from './components/inputs/react-hook-form/ag-grid-table/bottom-right-buttons';
44
+ export type { BottomRightButtonsProps } from './components/inputs/react-hook-form/ag-grid-table/bottom-right-buttons';
30
45
  export { default as CustomAgGridTable } from './components/inputs/react-hook-form/ag-grid-table/custom-ag-grid-table';
46
+ export type { CustomAgGridTableProps } from './components/inputs/react-hook-form/ag-grid-table/custom-ag-grid-table';
31
47
  export { ROW_DRAGGING_SELECTION_COLUMN_DEF } from './components/inputs/react-hook-form/ag-grid-table/custom-ag-grid-table';
32
- export type { Parameter } from './components/FlatParameters/FlatParameters';
33
48
  export { Line, Generator, Load, Battery, SVC, DanglingLine, LCC, VSC, Hvdc, BusBar, TwoWindingTransfo, ThreeWindingTransfo, ShuntCompensator, VoltageLevel, Substation, noSelectionForCopy, } from './utils/equipment-types';
34
49
  export { default as FieldConstants } from './utils/field-constants';
35
50
  export { fields as EXPERT_FILTER_FIELDS } from './components/filter/expert/expert-filter-constants';
36
51
  export { default as CustomReactQueryBuilder } from './components/inputs/react-query-builder/custom-react-query-builder';
52
+ export type { CustomReactQueryBuilderProps } from './components/inputs/react-query-builder/custom-react-query-builder';
37
53
  export { EXPERT_FILTER_QUERY, rqbQuerySchemaValidator, getExpertFilterEmptyFormData, } from './components/filter/expert/expert-filter-form';
38
54
  export { importExpertRules, exportExpertRules } from './components/filter/expert/expert-filter-utils';
39
55
  export type { RuleTypeExport, RuleGroupTypeExport } from './components/filter/expert/expert-filter.type';
40
56
  export { formatQuery } from 'react-querybuilder';
41
57
  export { default as yup } from './utils/yup-config';
42
- export type { TreeViewFinderNodeProps } from './components/TreeViewFinder/TreeViewFinder';
43
58
  export { GRIDSUITE_DEFAULT_PRECISION, roundToPrecision, roundToDefaultPrecision, isBlankOrEmpty, unitToMicroUnit, microUnitToUnit, } from './utils/conversion-utils';
44
59
  export { ElementType } from './utils/ElementType';
45
60
  export type { ElementAttributes, Option, Equipment } from './utils/types';
46
61
  export { EQUIPMENT_TYPE, EquipmentType, getEquipmentsInfosForSearchBar, equipmentStyles } from './utils/EquipmentType';
47
62
  export { initializeAuthenticationDev, initializeAuthenticationProd, logout, dispatchUser, getPreLoginPath, } from './utils/AuthService';
48
63
  export { default as getFileIcon } from './utils/ElementIcon';
49
- export { DEFAULT_CELL_PADDING, DEFAULT_HEADER_HEIGHT, DEFAULT_ROW_HEIGHT, } from './components/MuiVirtualizedTable/MuiVirtualizedTable';
50
64
  export { DARK_THEME, LIGHT_THEME, LANG_SYSTEM, LANG_ENGLISH, LANG_FRENCH } from './components/TopBar/TopBar';
51
65
  export type { GsLang, GsLangUser, GsTheme } from './components/TopBar/TopBar';
52
66
  export { USER, setLoggedUser, SIGNIN_CALLBACK_ERROR, setSignInCallbackError, UNAUTHORIZED_USER_INFO, LOGOUT_ERROR, USER_VALIDATION_ERROR, RESET_AUTHENTICATION_ROUTER_ERROR, SHOW_AUTH_INFO_LOGIN, } from './redux/authActions';
@@ -80,9 +94,9 @@ export { default as common_button_fr } from './components/translations/common-bu
80
94
  export { default as directory_items_input_en } from './components/translations/directory-items-input-en';
81
95
  export { default as directory_items_input_fr } from './components/translations/directory-items-input-fr';
82
96
  export { TagRenderer, ElementSearchInput, useElementSearch } from './components/ElementSearchDialog';
83
- export type { Paginated } from './components/ElementSearchDialog';
84
- export type { TagRendererProps } from './components/ElementSearchDialog';
97
+ export type { Paginated, TagRendererProps } from './components/ElementSearchDialog';
85
98
  export { EquipmentItem } from './components/ElementSearchDialog/equipment-item';
99
+ export type { EquipmentItemProps } from './components/ElementSearchDialog/equipment-item';
86
100
  export { default as CardErrorBoundary } from './components/CardErrorBoundary';
87
101
  export { default as useIntlRef } from './hooks/useIntlRef';
88
102
  export { useSnackMessage } from './hooks/useSnackMessage';
@@ -90,44 +104,72 @@ export { default as useDebounce } from './hooks/useDebounce';
90
104
  export { default as usePrevious } from './hooks/usePrevious';
91
105
  export { default as useConfidentialityWarning } from './hooks/useConfidentialityWarning';
92
106
  export { default as SelectClearable } from './components/inputs/select-clearable';
107
+ export type { SelectClearableProps } from './components/inputs/select-clearable';
93
108
  export { default as useCustomFormContext } from './components/inputs/react-hook-form/provider/use-custom-form-context';
94
109
  export { default as CustomFormProvider } from './components/inputs/react-hook-form/provider/custom-form-provider';
110
+ export type { MergedFormContextProps } from './components/inputs/react-hook-form/provider/custom-form-provider';
95
111
  export { default as AutocompleteInput } from './components/inputs/react-hook-form/autocomplete-inputs/autocomplete-input';
112
+ export type { AutocompleteInputProps } from './components/inputs/react-hook-form/autocomplete-inputs/autocomplete-input';
96
113
  export { default as TextInput } from './components/inputs/react-hook-form/text-input';
114
+ export type { TextInputProps } from './components/inputs/react-hook-form/text-input';
97
115
  export { default as ExpandingTextField } from './components/inputs/react-hook-form/ExpandingTextField';
116
+ export type { ExpandingTextFieldProps } from './components/inputs/react-hook-form/ExpandingTextField';
98
117
  export { default as RadioInput } from './components/inputs/react-hook-form/radio-input';
118
+ export type { RadioInputProps } from './components/inputs/react-hook-form/radio-input';
99
119
  export { default as SliderInput } from './components/inputs/react-hook-form/slider-input';
120
+ export type { SliderInputProps } from './components/inputs/react-hook-form/slider-input';
100
121
  export { default as FloatInput } from './components/inputs/react-hook-form/numbers/float-input';
122
+ export type { FloatInputProps } from './components/inputs/react-hook-form/numbers/float-input';
101
123
  export { default as IntegerInput } from './components/inputs/react-hook-form/numbers/integer-input';
102
124
  export { default as SelectInput } from './components/inputs/react-hook-form/select-inputs/select-input';
125
+ export type { SelectInputProps } from './components/inputs/react-hook-form/select-inputs/select-input';
103
126
  export { default as CheckboxInput } from './components/inputs/react-hook-form/booleans/checkbox-input';
127
+ export type { CheckboxInputProps } from './components/inputs/react-hook-form/booleans/checkbox-input';
104
128
  export { default as SwitchInput } from './components/inputs/react-hook-form/booleans/switch-input';
129
+ export type { SwitchInputProps } from './components/inputs/react-hook-form/booleans/switch-input';
105
130
  export { default as ErrorInput } from './components/inputs/react-hook-form/error-management/error-input';
131
+ export type { ErrorInputProps } from './components/inputs/react-hook-form/error-management/error-input';
106
132
  export { default as FieldErrorAlert } from './components/inputs/react-hook-form/error-management/field-error-alert';
133
+ export type { FieldErrorAlertProps } from './components/inputs/react-hook-form/error-management/field-error-alert';
107
134
  export { default as MidFormError } from './components/inputs/react-hook-form/error-management/mid-form-error';
135
+ export type { MidFormErrorProps } from './components/inputs/react-hook-form/error-management/mid-form-error';
108
136
  export { default as TextFieldWithAdornment } from './components/inputs/react-hook-form/utils/text-field-with-adornment';
137
+ export type { TextFieldWithAdornmentProps } from './components/inputs/react-hook-form/utils/text-field-with-adornment';
109
138
  export { default as FieldLabel } from './components/inputs/react-hook-form/utils/field-label';
139
+ export type { FieldLabelProps } from './components/inputs/react-hook-form/utils/field-label';
110
140
  export { default as SubmitButton } from './components/inputs/react-hook-form/utils/submit-button';
111
141
  export { default as CancelButton } from './components/inputs/react-hook-form/utils/cancel-button';
112
142
  export { genHelperPreviousValue, genHelperError, identity, isFieldRequired, gridItem, isFloatNumber, toFloatOrNullValue, } from './components/inputs/react-hook-form/utils/functions';
113
143
  export { keyGenerator, areArrayElementsUnique, isObjectEmpty } from './utils/functions';
114
144
  export { default as DirectoryItemsInput } from './components/inputs/react-hook-form/directory-items-input';
145
+ export type { DirectoryItemsInputProps } from './components/inputs/react-hook-form/directory-items-input';
115
146
  export { default as DirectoryItemSelector } from './components/DirectoryItemSelector/directory-item-selector';
147
+ export type { DirectoryItemSelectorProps } from './components/DirectoryItemSelector/directory-item-selector';
116
148
  export { default as CustomAGGrid } from './components/CustomAGGrid/custom-aggrid';
149
+ export type { CustomAGGridProps } from './components/CustomAGGrid/custom-aggrid';
117
150
  export { default as RawReadOnlyInput } from './components/inputs/react-hook-form/raw-read-only-input';
151
+ export type { RawReadOnlyInputProps } from './components/inputs/react-hook-form/raw-read-only-input';
118
152
  export { default as FilterCreationDialog } from './components/filter/filter-creation-dialog';
153
+ export type { FilterCreationDialogProps } from './components/filter/filter-creation-dialog';
119
154
  export { default as ExpertFilterEditionDialog } from './components/filter/expert/expert-filter-edition-dialog';
155
+ export type { ExpertFilterEditionDialogProps } from './components/filter/expert/expert-filter-edition-dialog';
120
156
  export { default as ExplicitNamingFilterEditionDialog } from './components/filter/explicit-naming/explicit-naming-filter-edition-dialog';
157
+ export type { ExplicitNamingFilterEditionDialogProps } from './components/filter/explicit-naming/explicit-naming-filter-edition-dialog';
121
158
  export { default as CriteriaBasedFilterEditionDialog } from './components/filter/criteria-based/criteria-based-filter-edition-dialog';
159
+ export type { CriteriaBasedFilterEditionDialogProps } from './components/filter/criteria-based/criteria-based-filter-edition-dialog';
122
160
  export { saveExplicitNamingFilter, saveCriteriaBasedFilter, saveExpertFilter, } from './components/filter/utils/filter-api';
123
161
  export { default as RangeInput, DEFAULT_RANGE_VALUE, getRangeInputDataForm, getRangeInputSchema, } from './components/inputs/react-hook-form/range-input';
124
162
  export { default as InputWithPopupConfirmation } from './components/inputs/react-hook-form/select-inputs/input-with-popup-confirmation';
125
163
  export { default as MuiSelectInput } from './components/inputs/react-hook-form/select-inputs/mui-select-input';
164
+ export type { MuiSelectInputProps } from './components/inputs/react-hook-form/select-inputs/mui-select-input';
126
165
  export { default as CountriesInput } from './components/inputs/react-hook-form/select-inputs/countries-input';
166
+ export type { CountryInputProps } from './components/inputs/react-hook-form/select-inputs/countries-input';
127
167
  export { getSystemLanguage, getComputedLanguage, useLocalizedCountries } from './hooks/localized-countries-hook';
128
168
  export { default as MultipleAutocompleteInput } from './components/inputs/react-hook-form/autocomplete-inputs/multiple-autocomplete-input';
129
169
  export { default as CsvUploader } from './components/inputs/react-hook-form/ag-grid-table/csv-uploader/csv-uploader';
170
+ export type { CsvUploaderProps } from './components/inputs/react-hook-form/ag-grid-table/csv-uploader/csv-uploader';
130
171
  export { default as UniqueNameInput } from './components/inputs/react-hook-form/unique-name-input';
172
+ export type { UniqueNameInputProps } from './components/inputs/react-hook-form/unique-name-input';
131
173
  export { default as UserManagerMock } from './utils/UserManagerMock';
132
174
  export { FILTER_EQUIPMENTS, CONTINGENCY_LIST_EQUIPMENTS } from './components/filter/utils/filter-form-utils';
133
175
  export type { FormEquipment } from './components/filter/utils/filter-form-utils';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsuite/commons-ui",
3
- "version": "0.64.0",
3
+ "version": "0.64.1",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "engines": {
6
6
  "npm": ">=9",