@gridsuite/commons-ui 0.52.0 → 0.52.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 (59) hide show
  1. package/README.md +12 -0
  2. package/dist/components/AuthenticationRouter/index.d.ts +1 -1
  3. package/dist/components/CardErrorBoundary/card-error-boundary.d.ts +1 -1
  4. package/dist/components/CardErrorBoundary/index.d.ts +1 -1
  5. package/dist/components/DirectoryItemSelector/directory-item-selector.d.ts +2 -8
  6. package/dist/components/ElementSearchDialog/element-search-dialog.d.ts +10 -10
  7. package/dist/components/ElementSearchDialog/equipment-item.d.ts +2 -2
  8. package/dist/components/ElementSearchDialog/index.d.ts +2 -2
  9. package/dist/components/ElementSearchDialog/tag-renderer.d.ts +3 -3
  10. package/dist/components/FlatParameters/index.d.ts +1 -1
  11. package/dist/components/Login/index.d.ts +1 -1
  12. package/dist/components/MuiVirtualizedTable/ColumnHeader.d.ts +2 -2
  13. package/dist/components/MuiVirtualizedTable/KeyedColumnsRowIndexer.d.ts +4 -4
  14. package/dist/components/MuiVirtualizedTable/MuiVirtualizedTable.d.ts +22 -22
  15. package/dist/components/MuiVirtualizedTable/index.d.ts +2 -2
  16. package/dist/components/MultipleSelectionDialog/index.d.ts +1 -1
  17. package/dist/components/OverflowableText/index.d.ts +1 -1
  18. package/dist/components/OverflowableText/overflowable-text.d.ts +1 -1
  19. package/dist/components/ReportViewer/index.d.ts +1 -1
  20. package/dist/components/ReportViewer/log-table.d.ts +1 -1
  21. package/dist/components/ReportViewer/report-item.d.ts +2 -2
  22. package/dist/components/ReportViewer/report-tree-view-context.d.ts +1 -1
  23. package/dist/components/ReportViewer/report-viewer.js +1 -1
  24. package/dist/components/ReportViewerDialog/index.d.ts +1 -1
  25. package/dist/components/SignInCallbackHandler/index.d.ts +1 -1
  26. package/dist/components/SilentRenewCallbackHandler/index.d.ts +1 -1
  27. package/dist/components/SnackbarProvider/SnackbarProvider.d.ts +1 -1
  28. package/dist/components/SnackbarProvider/index.d.ts +1 -1
  29. package/dist/components/TopBar/AboutDialog.d.ts +9 -9
  30. package/dist/components/TopBar/GridLogo.d.ts +9 -9
  31. package/dist/components/TopBar/TopBar.d.ts +21 -21
  32. package/dist/components/TopBar/TopBar.test.d.ts +1 -0
  33. package/dist/components/TopBar/index.d.ts +3 -3
  34. package/dist/components/TreeViewFinder/TreeViewFinder.d.ts +4 -4
  35. package/dist/components/TreeViewFinder/TreeViewFinder.js +1 -1
  36. package/dist/components/TreeViewFinder/index.d.ts +1 -1
  37. package/dist/components/react-hook-form/ExpandingTextField.d.ts +3 -8
  38. package/dist/components/react-hook-form/ExpandingTextField.js +1 -1
  39. package/dist/components/react-hook-form/autocomplete-input.d.ts +12 -12
  40. package/dist/components/react-hook-form/booleans/boolean-input.d.ts +5 -5
  41. package/dist/components/react-hook-form/booleans/checkbox-input.d.ts +4 -4
  42. package/dist/components/react-hook-form/booleans/switch-input.d.ts +4 -4
  43. package/dist/components/react-hook-form/directory-items-input.d.ts +2 -8
  44. package/dist/components/react-hook-form/numbers/float-input.d.ts +13 -13
  45. package/dist/components/react-hook-form/numbers/integer-input.d.ts +13 -13
  46. package/dist/components/react-hook-form/radio-input.d.ts +6 -6
  47. package/dist/components/react-hook-form/select-input.d.ts +2 -2
  48. package/dist/components/react-hook-form/slider-input.d.ts +8 -8
  49. package/dist/components/react-hook-form/text-input.d.ts +14 -14
  50. package/dist/components/react-hook-form/utils/cancel-button.d.ts +2 -2
  51. package/dist/components/react-hook-form/utils/submit-button.d.ts +2 -2
  52. package/dist/components/react-hook-form/utils/text-field-with-adornment.d.ts +6 -6
  53. package/dist/components/translations/common-button-en.d.ts +2 -2
  54. package/dist/components/translations/common-button-fr.d.ts +2 -2
  55. package/dist/hooks/useIntlRef.d.ts +1 -1
  56. package/dist/index.d.ts +3 -16
  57. package/dist/utils/AuthService.d.ts +1 -1
  58. package/dist/utils/AuthService.js +1 -1
  59. package/package.json +65 -62
package/README.md CHANGED
@@ -27,3 +27,15 @@ you need to follow the steps below:
27
27
  - [Test your package](https://docs.npmjs.com/creating-and-publishing-scoped-public-packages#testing-your-package): `npm install`
28
28
  - [Login on the command line to the npm registry](https://docs.npmjs.com/logging-in-to-an-npm-enterprise-registry-from-the-command-line): `npm login`
29
29
  - [Publish the package](https://docs.npmjs.com/creating-and-publishing-scoped-public-packages#publishing-scoped-public-packages): `npm publish`
30
+
31
+ #### License Headers and dependencies checking
32
+
33
+ To check dependencies license compatibility with this project one locally, please run the following command :
34
+
35
+ ```
36
+ npm run licenses-check
37
+ ```
38
+
39
+ Notes :
40
+ * Check [license-checker-config.json](license-checker-config.json) for license white list and exclusion.
41
+ If you need to update this list, please inform organization's owners.
@@ -1 +1 @@
1
- export { default } from "./AuthenticationRouter";
1
+ export { default } from './AuthenticationRouter';
@@ -1,3 +1,4 @@
1
+ import { Component } from 'react';
1
2
  export default CardErrorBoundary;
2
3
  declare class CardErrorBoundary extends Component<any, any, any> {
3
4
  static getDerivedStateFromError(error: any): {
@@ -15,4 +16,3 @@ declare class CardErrorBoundary extends Component<any, any, any> {
15
16
  componentDidCatch(error: any, errorInfo: any): void;
16
17
  render(): any;
17
18
  }
18
- import { Component } from 'react';
@@ -1 +1 @@
1
- export { default } from "./card-error-boundary";
1
+ export { default } from './card-error-boundary';
@@ -1,12 +1,6 @@
1
- /**
2
- * Copyright (c) 2022, RTE (http://www.rte-france.com)
3
- * This Source Code Form is subject to the terms of the Mozilla Public
4
- * License, v. 2.0. If a copy of the MPL was not distributed with this
5
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
- */
7
- /// <reference types="node" />
8
- import { FunctionComponent } from 'react';
9
1
  import { UUID } from 'crypto';
2
+ import { FunctionComponent } from 'react';
3
+
10
4
  interface DirectoryItemSelectorProps {
11
5
  open: boolean;
12
6
  onClose: any;
@@ -1,16 +1,16 @@
1
+ import { default as PropTypes } from 'prop-types';
1
2
  export default ElementSearchDialog;
2
3
  declare function ElementSearchDialog(props: any): import("react/jsx-runtime").JSX.Element;
3
4
  declare namespace ElementSearchDialog {
4
5
  namespace propTypes {
5
- const open: PropTypes.Validator<boolean>;
6
- const onClose: PropTypes.Validator<(...args: any[]) => any>;
7
- const searchingLabel: PropTypes.Requireable<string>;
8
- const onSearchTermChange: PropTypes.Validator<(...args: any[]) => any>;
9
- const onSelectionChange: PropTypes.Validator<(...args: any[]) => any>;
10
- const elementsFound: PropTypes.Validator<any[]>;
11
- const renderElement: PropTypes.Validator<(...args: any[]) => any>;
12
- const searchTermDisabled: PropTypes.Requireable<boolean>;
13
- const searchTermDisableReason: PropTypes.Requireable<string>;
6
+ let open: PropTypes.Validator<boolean>;
7
+ let onClose: PropTypes.Validator<(...args: any[]) => any>;
8
+ let searchingLabel: PropTypes.Requireable<string>;
9
+ let onSearchTermChange: PropTypes.Validator<(...args: any[]) => any>;
10
+ let onSelectionChange: PropTypes.Validator<(...args: any[]) => any>;
11
+ let elementsFound: PropTypes.Validator<any[]>;
12
+ let renderElement: PropTypes.Validator<(...args: any[]) => any>;
13
+ let searchTermDisabled: PropTypes.Requireable<boolean>;
14
+ let searchTermDisableReason: PropTypes.Requireable<string>;
14
15
  }
15
16
  }
16
- import PropTypes from 'prop-types';
@@ -7,8 +7,8 @@ export function EquipmentItem({ inputValue, suffixRenderer, element, showsJustTe
7
7
  element: any;
8
8
  }): import("react/jsx-runtime").JSX.Element;
9
9
  propTypes: {
10
- element: import("prop-types").Requireable<object>;
11
- props: import("prop-types").Requireable<object>;
10
+ element: import('prop-types').Requireable<object>;
11
+ props: import('prop-types').Requireable<object>;
12
12
  };
13
13
  } | undefined;
14
14
  element: any;
@@ -1,2 +1,2 @@
1
- export { default } from "./element-search-dialog";
2
- export { TagRenderer } from "./tag-renderer";
1
+ export { default } from './element-search-dialog';
2
+ export { TagRenderer } from './tag-renderer';
@@ -1,11 +1,11 @@
1
+ import { default as PropTypes } from 'prop-types';
1
2
  export function TagRenderer({ props, element }: {
2
3
  props: any;
3
4
  element: any;
4
5
  }): import("react/jsx-runtime").JSX.Element;
5
6
  export namespace TagRenderer {
6
7
  namespace propTypes {
7
- const element: PropTypes.Requireable<object>;
8
- const props: PropTypes.Requireable<object>;
8
+ let element: PropTypes.Requireable<object>;
9
+ let props: PropTypes.Requireable<object>;
9
10
  }
10
11
  }
11
- import PropTypes from 'prop-types';
@@ -1 +1 @@
1
- export { default } from "./FlatParameters";
1
+ export { default } from './FlatParameters';
@@ -1 +1 @@
1
- export { default } from "./Login";
1
+ export { default } from './Login';
@@ -1,3 +1,3 @@
1
- export const ColumnHeader: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
2
- declare const _default: import("@emotion/styled").StyledComponent<import("react").RefAttributes<any> & import("@mui/system").MUIStyledCommonProps<import("@mui/system").Theme>, {}, {}>;
1
+ export const ColumnHeader: import('react').ForwardRefExoticComponent<import("react").RefAttributes<any>>;
2
+ declare const _default: import('@emotion/styled').StyledComponent<import("react").RefAttributes<any> & import("@mui/system").MUIStyledCommonProps<import("@mui/system").Theme>, {}, {}>;
3
3
  export default _default;
@@ -1,8 +1,8 @@
1
1
  export namespace CHANGE_WAYS {
2
- const SIMPLE: string;
3
- const TAIL: string;
4
- const AMEND: string;
5
- const REMOVE: string;
2
+ let SIMPLE: string;
3
+ let TAIL: string;
4
+ let AMEND: string;
5
+ let REMOVE: string;
6
6
  }
7
7
  export const noOpHelper: Readonly<{
8
8
  debugName: "noOp";
@@ -1,8 +1,10 @@
1
+ import { PureComponent } from 'react';
2
+ import { default as PropTypes } from 'prop-types';
1
3
  export const DEFAULT_CELL_PADDING: 16;
2
4
  export const DEFAULT_HEADER_HEIGHT: 48;
3
5
  export const DEFAULT_ROW_HEIGHT: 48;
4
6
  export function generateMuiVirtualizedTableClass(className: any): string;
5
- declare const _default: import("@emotion/styled").StyledComponent<Pick<PropTypes.InferProps<{
7
+ declare const _default: import('@emotion/styled').StyledComponent<Pick<PropTypes.InferProps<{
6
8
  name: PropTypes.Requireable<string>;
7
9
  classes: PropTypes.Requireable<object>;
8
10
  rows: PropTypes.Requireable<any[]>;
@@ -28,7 +30,7 @@ declare const _default: import("@emotion/styled").StyledComponent<Pick<PropTypes
28
30
  rowHeight: PropTypes.Requireable<number>;
29
31
  filter: PropTypes.Requireable<(...args: any[]) => any>;
30
32
  tooltipSx: PropTypes.Requireable<object>;
31
- }>, "filter" | "name" | "rows" | "columns" | "sort" | "tooltipSx" | "indexer" | "sortable" | "exportCSVDataKeys" | "onRowClick" | "onCellClick"> & {
33
+ }>, "filter" | "columns" | "name" | "rows" | "sort" | "tooltipSx" | "indexer" | "sortable" | "exportCSVDataKeys" | "onRowClick" | "onCellClick"> & {
32
34
  classes?: object | null | undefined;
33
35
  headerHeight?: number | null | undefined;
34
36
  enableExportCSV?: boolean | null | undefined;
@@ -37,7 +39,6 @@ declare const _default: import("@emotion/styled").StyledComponent<Pick<PropTypes
37
39
  ref?: import("react").Ref<MuiVirtualizedTable> | undefined;
38
40
  }>;
39
41
  export default _default;
40
- import PropTypes from 'prop-types';
41
42
  declare class MuiVirtualizedTable extends PureComponent<any, any, any> {
42
43
  static defaultProps: {
43
44
  headerHeight: number;
@@ -49,7 +50,7 @@ declare class MuiVirtualizedTable extends PureComponent<any, any, any> {
49
50
  _computeHeaderSize(): void;
50
51
  _registerHeader(label: any, header: any): void;
51
52
  _registerObserver(element: any): void;
52
- headers: import("react").RefObject<any>;
53
+ headers: import('react').RefObject<any>;
53
54
  observer: IntersectionObserver;
54
55
  state: {
55
56
  headerHeight: any;
@@ -64,7 +65,7 @@ declare class MuiVirtualizedTable extends PureComponent<any, any, any> {
64
65
  componentDidMount(): void;
65
66
  componentWillUnmount(): void;
66
67
  computeDataWidth: (text: any) => any;
67
- sizes: import("memoize-one").MemoizedFn<(this: any, columns: any, rows: any, rowGetter: any) => {}>;
68
+ sizes: import('memoize-one').MemoizedFn<(this: any, columns: any, rows: any, rowGetter: any) => {}>;
68
69
  openPopover: (popoverTarget: any, colKey: any) => void;
69
70
  dropDownVisible: any;
70
71
  handleKeyDownOnPopover: (evt: any) => void;
@@ -96,15 +97,15 @@ declare class MuiVirtualizedTable extends PureComponent<any, any, any> {
96
97
  makeSizedTable: (height: any, width: any, sizes: any, reorderedIndex: any, rowGetter: any) => import("react/jsx-runtime").JSX.Element;
97
98
  getCSVFilename: () => any;
98
99
  getCSVData: () => Promise<{}[]>;
99
- csvHeaders: import("memoize-one").MemoizedFn<(this: any, columns: any, exportCSVDataKeys: any) => any[]>;
100
+ csvHeaders: import('memoize-one').MemoizedFn<(this: any, columns: any, exportCSVDataKeys: any) => any[]>;
100
101
  render(): import("react/jsx-runtime").JSX.Element;
101
102
  }
102
103
  declare namespace MuiVirtualizedTable {
103
104
  namespace propTypes {
104
- const name: PropTypes.Requireable<string>;
105
- const classes: PropTypes.Requireable<object>;
106
- const rows: PropTypes.Requireable<any[]>;
107
- const columns: PropTypes.Validator<(PropTypes.InferProps<{
105
+ let name: PropTypes.Requireable<string>;
106
+ let classes: PropTypes.Requireable<object>;
107
+ let rows: PropTypes.Requireable<any[]>;
108
+ let columns: PropTypes.Validator<(PropTypes.InferProps<{
108
109
  dataKey: PropTypes.Validator<string>;
109
110
  label: PropTypes.Validator<string>;
110
111
  numeric: PropTypes.Requireable<boolean>;
@@ -115,17 +116,16 @@ declare namespace MuiVirtualizedTable {
115
116
  fractionDigits: PropTypes.Requireable<number>;
116
117
  extra: PropTypes.Requireable<PropTypes.ReactElementLike>;
117
118
  }> | null | undefined)[]>;
118
- const enableExportCSV: PropTypes.Requireable<boolean>;
119
- const exportCSVDataKeys: PropTypes.Requireable<any[]>;
120
- const sort: PropTypes.Requireable<(...args: any[]) => any>;
121
- const sortable: PropTypes.Requireable<boolean>;
122
- const indexer: PropTypes.Requireable<object>;
123
- const headerHeight: PropTypes.Requireable<number>;
124
- const onRowClick: PropTypes.Requireable<(...args: any[]) => any>;
125
- const onCellClick: PropTypes.Requireable<(...args: any[]) => any>;
126
- const rowHeight: PropTypes.Requireable<number>;
127
- const filter: PropTypes.Requireable<(...args: any[]) => any>;
128
- const tooltipSx: PropTypes.Requireable<object>;
119
+ let enableExportCSV: PropTypes.Requireable<boolean>;
120
+ let exportCSVDataKeys: PropTypes.Requireable<any[]>;
121
+ let sort: PropTypes.Requireable<(...args: any[]) => any>;
122
+ let sortable: PropTypes.Requireable<boolean>;
123
+ let indexer: PropTypes.Requireable<object>;
124
+ let headerHeight: PropTypes.Requireable<number>;
125
+ let onRowClick: PropTypes.Requireable<(...args: any[]) => any>;
126
+ let onCellClick: PropTypes.Requireable<(...args: any[]) => any>;
127
+ let rowHeight: PropTypes.Requireable<number>;
128
+ let filter: PropTypes.Requireable<(...args: any[]) => any>;
129
+ let tooltipSx: PropTypes.Requireable<object>;
129
130
  }
130
131
  }
131
- import { PureComponent } from 'react';
@@ -1,2 +1,2 @@
1
- export { default, generateMuiVirtualizedTableClass } from "./MuiVirtualizedTable";
2
- export { KeyedColumnsRowIndexer, CHANGE_WAYS } from "./KeyedColumnsRowIndexer";
1
+ export { default, generateMuiVirtualizedTableClass } from './MuiVirtualizedTable';
2
+ export { KeyedColumnsRowIndexer, CHANGE_WAYS } from './KeyedColumnsRowIndexer';
@@ -1 +1 @@
1
- export { default } from "./MultipleSelectionDialog";
1
+ export { default } from './MultipleSelectionDialog';
@@ -1 +1 @@
1
- export { default } from "./overflowable-text";
1
+ export { default } from './overflowable-text';
@@ -1,2 +1,2 @@
1
- export const OverflowableText: import("@emotion/styled").StyledComponent<any, {}, {}>;
1
+ export const OverflowableText: import('@emotion/styled').StyledComponent<any, {}, {}>;
2
2
  export default OverflowableText;
@@ -1 +1 @@
1
- export { default } from "./report-viewer";
1
+ export { default } from './report-viewer';
@@ -1,4 +1,4 @@
1
- declare const _default: import("react").MemoExoticComponent<({ logs, onRowClick, selectedSeverity, setSelectedSeverity, }: {
1
+ declare const _default: import('react').MemoExoticComponent<({ logs, onRowClick, selectedSeverity, setSelectedSeverity, }: {
2
2
  logs: any;
3
3
  onRowClick: any;
4
4
  selectedSeverity: any;
@@ -1,4 +1,5 @@
1
- declare const _default: import("@emotion/styled").StyledComponent<PropTypes.InferPropsInner<Pick<{
1
+ import { default as PropTypes } from 'prop-types';
2
+ declare const _default: import('@emotion/styled').StyledComponent<PropTypes.InferPropsInner<Pick<{
2
3
  bgColor: PropTypes.Requireable<string>;
3
4
  color: PropTypes.Requireable<string>;
4
5
  labelInfo: PropTypes.Requireable<string>;
@@ -10,4 +11,3 @@ declare const _default: import("@emotion/styled").StyledComponent<PropTypes.Infe
10
11
  labelText: PropTypes.Validator<string>;
11
12
  }, "color" | "bgColor" | "labelInfo">>> & import("@mui/system").MUIStyledCommonProps<import("@mui/system").Theme>, {}, {}>;
12
13
  export default _default;
13
- import PropTypes from 'prop-types';
@@ -1,2 +1,2 @@
1
1
  export default ReportTreeViewContext;
2
- declare const ReportTreeViewContext: import("react").Context<{}>;
2
+ declare const ReportTreeViewContext: import('react').Context<{}>;
@@ -1,6 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useState, useRef, useMemo, useCallback, useEffect } from "react";
3
- import { TreeView } from "@mui/lab";
4
3
  import { ArrowDropDown, ArrowRight } from "@mui/icons-material";
5
4
  import ReportItem from "./report-item.js";
6
5
  import LogReport from "./log-report.js";
@@ -8,6 +7,7 @@ import { Grid } from "@mui/material";
8
7
  import LogTable from "./log-table.js";
9
8
  import ReportTreeViewContext from "./report-tree-view-context.js";
10
9
  import LogReportItem from "./log-report-item.js";
10
+ import { TreeView } from "@mui/x-tree-view";
11
11
  const MAX_SUB_REPORTS = 500;
12
12
  const styles = {
13
13
  treeView: {
@@ -1 +1 @@
1
- export { default } from "./report-viewer-dialog";
1
+ export { default } from './report-viewer-dialog';
@@ -1 +1 @@
1
- export { default } from "./SignInCallbackHandler";
1
+ export { default } from './SignInCallbackHandler';
@@ -1 +1 @@
1
- export { default } from "./SilentRenewCallbackHandler";
1
+ export { default } from './SilentRenewCallbackHandler';
@@ -1,2 +1,2 @@
1
1
  export default SnackbarProvider;
2
- declare const SnackbarProvider: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
2
+ declare const SnackbarProvider: import('react').ForwardRefExoticComponent<import("react").RefAttributes<any>>;
@@ -1 +1 @@
1
- export { default } from "./SnackbarProvider";
1
+ export { default } from './SnackbarProvider';
@@ -1,3 +1,4 @@
1
+ import { default as PropTypes } from 'prop-types';
1
2
  export default AboutDialog;
2
3
  declare function AboutDialog({ open, onClose, globalVersionPromise, appName, appVersion, appGitTag, appLicense, additionalModulesPromise, }: {
3
4
  open: any;
@@ -11,14 +12,13 @@ declare function AboutDialog({ open, onClose, globalVersionPromise, appName, app
11
12
  }): import("react/jsx-runtime").JSX.Element;
12
13
  declare namespace AboutDialog {
13
14
  namespace propTypes {
14
- const open: PropTypes.Validator<boolean>;
15
- const onClose: PropTypes.Requireable<(...args: any[]) => any>;
16
- const appName: PropTypes.Validator<string>;
17
- const appVersion: PropTypes.Requireable<string>;
18
- const appGitTag: PropTypes.Requireable<string>;
19
- const appLicense: PropTypes.Requireable<string>;
20
- const globalVersionPromise: PropTypes.Requireable<(...args: any[]) => any>;
21
- const additionalModulesPromise: PropTypes.Requireable<(...args: any[]) => any>;
15
+ let open: PropTypes.Validator<boolean>;
16
+ let onClose: PropTypes.Requireable<(...args: any[]) => any>;
17
+ let appName: PropTypes.Validator<string>;
18
+ let appVersion: PropTypes.Requireable<string>;
19
+ let appGitTag: PropTypes.Requireable<string>;
20
+ let appLicense: PropTypes.Requireable<string>;
21
+ let globalVersionPromise: PropTypes.Requireable<(...args: any[]) => any>;
22
+ let additionalModulesPromise: PropTypes.Requireable<(...args: any[]) => any>;
22
23
  }
23
24
  }
24
- import PropTypes from 'prop-types';
@@ -1,3 +1,4 @@
1
+ import { default as PropTypes } from 'prop-types';
1
2
  export default GridLogo;
2
3
  export function LogoText({ appName, appColor, style, onClick }: {
3
4
  appName: any;
@@ -7,10 +8,10 @@ export function LogoText({ appName, appColor, style, onClick }: {
7
8
  }): import("react/jsx-runtime").JSX.Element;
8
9
  export namespace LogoText {
9
10
  namespace propTypes {
10
- const appName: PropTypes.Validator<string>;
11
- const appColor: PropTypes.Validator<string>;
12
- const style: PropTypes.Requireable<object>;
13
- const onClick: PropTypes.Requireable<(...args: any[]) => any>;
11
+ let appName: PropTypes.Validator<string>;
12
+ let appColor: PropTypes.Validator<string>;
13
+ let style: PropTypes.Requireable<object>;
14
+ let onClick: PropTypes.Requireable<(...args: any[]) => any>;
14
15
  }
15
16
  }
16
17
  declare function GridLogo({ appLogo, appName, appColor, onClick }: {
@@ -21,14 +22,13 @@ declare function GridLogo({ appLogo, appName, appColor, onClick }: {
21
22
  }): import("react/jsx-runtime").JSX.Element;
22
23
  declare namespace GridLogo {
23
24
  export namespace propTypes_1 {
24
- export const appLogo: PropTypes.Requireable<PropTypes.ReactElementLike>;
25
- const appName_1: PropTypes.Validator<string>;
25
+ export let appLogo: PropTypes.Requireable<PropTypes.ReactElementLike>;
26
+ let appName_1: PropTypes.Validator<string>;
26
27
  export { appName_1 as appName };
27
- const appColor_1: PropTypes.Validator<string>;
28
+ let appColor_1: PropTypes.Validator<string>;
28
29
  export { appColor_1 as appColor };
29
- const onClick_1: PropTypes.Requireable<(...args: any[]) => any>;
30
+ let onClick_1: PropTypes.Requireable<(...args: any[]) => any>;
30
31
  export { onClick_1 as onClick };
31
32
  }
32
33
  export { propTypes_1 as propTypes };
33
34
  }
34
- import PropTypes from 'prop-types';
@@ -1,3 +1,4 @@
1
+ import { default as PropTypes } from 'prop-types';
1
2
  export const DARK_THEME: "Dark";
2
3
  export const LIGHT_THEME: "Light";
3
4
  export const LANG_SYSTEM: "sys";
@@ -28,26 +29,25 @@ declare function TopBar({ appName, appColor, appLogo, appVersion, appLicense, on
28
29
  }): import("react/jsx-runtime").JSX.Element;
29
30
  declare namespace TopBar {
30
31
  namespace propTypes {
31
- const onParametersClick: PropTypes.Requireable<(...args: any[]) => any>;
32
- const onLogoutClick: PropTypes.Requireable<(...args: any[]) => any>;
33
- const onLogoClick: PropTypes.Requireable<(...args: any[]) => any>;
34
- const appName: PropTypes.Requireable<string>;
35
- const appColor: PropTypes.Requireable<string>;
36
- const appLogo: PropTypes.Requireable<object>;
37
- const appVersion: PropTypes.Requireable<string>;
38
- const appLicense: PropTypes.Requireable<string>;
39
- const user: PropTypes.Requireable<object>;
40
- const children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
41
- const appsAndUrls: PropTypes.Requireable<any[]>;
42
- const onThemeClick: PropTypes.Requireable<(...args: any[]) => any>;
43
- const theme: PropTypes.Requireable<string>;
44
- const onAboutClick: PropTypes.Requireable<(...args: any[]) => any>;
45
- const globalVersionPromise: PropTypes.Requireable<(...args: any[]) => any>;
46
- const additionalModulesPromise: PropTypes.Requireable<(...args: any[]) => any>;
47
- const onEquipmentLabellingClick: PropTypes.Requireable<(...args: any[]) => any>;
48
- const equipmentLabelling: PropTypes.Requireable<boolean>;
49
- const onLanguageClick: PropTypes.Validator<(...args: any[]) => any>;
50
- const language: PropTypes.Validator<string>;
32
+ let onParametersClick: PropTypes.Requireable<(...args: any[]) => any>;
33
+ let onLogoutClick: PropTypes.Requireable<(...args: any[]) => any>;
34
+ let onLogoClick: PropTypes.Requireable<(...args: any[]) => any>;
35
+ let appName: PropTypes.Requireable<string>;
36
+ let appColor: PropTypes.Requireable<string>;
37
+ let appLogo: PropTypes.Requireable<object>;
38
+ let appVersion: PropTypes.Requireable<string>;
39
+ let appLicense: PropTypes.Requireable<string>;
40
+ let user: PropTypes.Requireable<object>;
41
+ let children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
42
+ let appsAndUrls: PropTypes.Requireable<any[]>;
43
+ let onThemeClick: PropTypes.Requireable<(...args: any[]) => any>;
44
+ let theme: PropTypes.Requireable<string>;
45
+ let onAboutClick: PropTypes.Requireable<(...args: any[]) => any>;
46
+ let globalVersionPromise: PropTypes.Requireable<(...args: any[]) => any>;
47
+ let additionalModulesPromise: PropTypes.Requireable<(...args: any[]) => any>;
48
+ let onEquipmentLabellingClick: PropTypes.Requireable<(...args: any[]) => any>;
49
+ let equipmentLabelling: PropTypes.Requireable<boolean>;
50
+ let onLanguageClick: PropTypes.Validator<(...args: any[]) => any>;
51
+ let language: PropTypes.Validator<string>;
51
52
  }
52
53
  }
53
- import PropTypes from 'prop-types';
@@ -0,0 +1 @@
1
+ export {};
@@ -1,3 +1,3 @@
1
- export { default } from "./TopBar";
2
- export * from "./GridLogo";
3
- export { default as AboutDialog } from "./AboutDialog";
1
+ export { default } from './TopBar';
2
+ export * from './GridLogo';
3
+ export { default as AboutDialog } from './AboutDialog';
@@ -1,5 +1,6 @@
1
+ import { default as PropTypes } from 'prop-types';
1
2
  export function generateTreeViewFinderClass(className: any): string;
2
- declare const _default: import("@emotion/styled").StyledComponent<Pick<PropTypes.InferProps<{
3
+ declare const _default: import('@emotion/styled').StyledComponent<Pick<PropTypes.InferProps<{
3
4
  open: PropTypes.Validator<boolean>;
4
5
  onClose: PropTypes.Requireable<(...args: any[]) => any>;
5
6
  data: PropTypes.Validator<(PropTypes.InferProps<{
@@ -19,7 +20,7 @@ declare const _default: import("@emotion/styled").StyledComponent<Pick<PropTypes
19
20
  sortMethod: PropTypes.Requireable<(...args: any[]) => any>;
20
21
  cancelButtonProps: PropTypes.Requireable<object>;
21
22
  className: PropTypes.Requireable<string>;
22
- }>, "className" | "title" | "onClose" | "contentText" | "validationButtonText" | "cancelButtonProps" | "onTreeBrowse" | PropTypes.RequiredKeys<{
23
+ }>, "className" | "title" | "onClose" | "onTreeBrowse" | "contentText" | "validationButtonText" | "cancelButtonProps" | PropTypes.RequiredKeys<{
23
24
  open: PropTypes.Validator<boolean>;
24
25
  onClose: PropTypes.Requireable<(...args: any[]) => any>;
25
26
  data: PropTypes.Validator<(PropTypes.InferProps<{
@@ -41,8 +42,8 @@ declare const _default: import("@emotion/styled").StyledComponent<Pick<PropTypes
41
42
  className: PropTypes.Requireable<string>;
42
43
  }>> & {
43
44
  classes?: object | null | undefined;
44
- defaultExpanded?: (string | null | undefined)[] | null | undefined;
45
45
  defaultSelected?: (string | null | undefined)[] | null | undefined;
46
+ defaultExpanded?: (string | null | undefined)[] | null | undefined;
46
47
  onlyLeaves?: boolean | null | undefined;
47
48
  multiselect?: boolean | null | undefined;
48
49
  sortMethod?: ((...args: any[]) => any) | null | undefined;
@@ -56,4 +57,3 @@ export type onTreeBrowseCallback = (nodeId: string) => any;
56
57
  * - callback to update data prop when walk into Tree
57
58
  */
58
59
  export type onTreeBrowse = (defaultSelected?: any[] | undefined, defaultExpanded?: any[] | undefined, validationButtonText?: string | undefined, onlyLeaves?: boolean | undefined, multiselect?: boolean | undefined, cancelButtonProps?: Object | undefined) => any;
59
- import PropTypes from 'prop-types';
@@ -5,7 +5,7 @@ import PropTypes from "prop-types";
5
5
  import { toNestedGlobalSelectors, makeComposeClasses } from "../../utils/styles.js";
6
6
  import { styled } from "@mui/system";
7
7
  import { Dialog, DialogTitle, DialogContent, DialogContentText, DialogActions, Button, Typography } from "@mui/material";
8
- import { TreeView, TreeItem } from "@mui/lab";
8
+ import { TreeView, TreeItem } from "@mui/x-tree-view";
9
9
  import { ChevronRight, ExpandMore, Check } from "@mui/icons-material";
10
10
  import CancelButton from "../react-hook-form/utils/cancel-button.js";
11
11
  const cssDialogPaper = "dialogPaper";
@@ -1 +1 @@
1
- export { default, generateTreeViewFinderClass } from "./TreeViewFinder";
1
+ export { default, generateTreeViewFinderClass } from './TreeViewFinder';
@@ -1,12 +1,7 @@
1
- /**
2
- * Copyright (c) 2024, RTE (http://www.rte-france.com)
3
- * This Source Code Form is subject to the terms of the Mozilla Public
4
- * License, v. 2.0. If a copy of the MPL was not distributed with this
5
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
- */
7
- import { TextFieldProps } from '@mui/material';
8
- import { FunctionComponent } from 'react';
9
1
  import { TextInputProps } from '../..';
2
+ import { FunctionComponent } from 'react';
3
+ import { TextFieldProps } from '@mui/material';
4
+
10
5
  interface ExpandingTextFieldProps extends TextInputProps {
11
6
  name: string;
12
7
  maxCharactersNumber?: number;
@@ -12,11 +12,11 @@ import "../../utils/AuthService.js";
12
12
  import "@mui/icons-material";
13
13
  import "react-intl";
14
14
  import "../MuiVirtualizedTable/MuiVirtualizedTable.js";
15
- import "@mui/lab";
16
15
  import "../ReportViewer/report-item.js";
17
16
  import "uuid";
18
17
  import "../ReportViewer/log-table.js";
19
18
  import "../ReportViewer/report-tree-view-context.js";
19
+ import "@mui/x-tree-view";
20
20
  import "../OverflowableText/overflowable-text.js";
21
21
  import "../ElementSearchDialog/element-search-dialog.js";
22
22
  import "../ElementSearchDialog/tag-renderer.js";
@@ -1,3 +1,5 @@
1
+ import { default as PropTypes } from 'prop-types';
2
+ import { identity } from './utils/functions';
1
3
  export default AutocompleteInput;
2
4
  declare function AutocompleteInput({ name, label, options, outputTransform, inputTransform, readOnly, previousValue, allowNewValue, onChangeCallback, formProps, ...props }: {
3
5
  [x: string]: any;
@@ -14,17 +16,15 @@ declare function AutocompleteInput({ name, label, options, outputTransform, inpu
14
16
  }): import("react/jsx-runtime").JSX.Element;
15
17
  declare namespace AutocompleteInput {
16
18
  namespace propTypes {
17
- const name: PropTypes.Validator<string>;
18
- const label: PropTypes.Requireable<string>;
19
- const options: PropTypes.Validator<any[]>;
20
- const outputTransform: PropTypes.Requireable<(...args: any[]) => any>;
21
- const inputTransform: PropTypes.Requireable<(...args: any[]) => any>;
22
- const readOnly: PropTypes.Requireable<boolean>;
23
- const previousValue: PropTypes.Requireable<any>;
24
- const allowNewValue: PropTypes.Requireable<boolean>;
25
- const onChangeCallback: PropTypes.Requireable<(...args: any[]) => any>;
26
- const formProps: PropTypes.Requireable<object>;
19
+ let name: PropTypes.Validator<string>;
20
+ let label: PropTypes.Requireable<string>;
21
+ let options: PropTypes.Validator<any[]>;
22
+ let outputTransform: PropTypes.Requireable<(...args: any[]) => any>;
23
+ let inputTransform: PropTypes.Requireable<(...args: any[]) => any>;
24
+ let readOnly: PropTypes.Requireable<boolean>;
25
+ let previousValue: PropTypes.Requireable<any>;
26
+ let allowNewValue: PropTypes.Requireable<boolean>;
27
+ let onChangeCallback: PropTypes.Requireable<(...args: any[]) => any>;
28
+ let formProps: PropTypes.Requireable<object>;
27
29
  }
28
30
  }
29
- import { identity } from './utils/functions';
30
- import PropTypes from 'prop-types';
@@ -1,3 +1,4 @@
1
+ import { default as PropTypes } from 'prop-types';
1
2
  export default BooleanInput;
2
3
  declare function BooleanInput({ name, label, formProps, Input }: {
3
4
  name: any;
@@ -7,10 +8,9 @@ declare function BooleanInput({ name, label, formProps, Input }: {
7
8
  }): import("react/jsx-runtime").JSX.Element;
8
9
  declare namespace BooleanInput {
9
10
  namespace propTypes {
10
- const name: PropTypes.Validator<string>;
11
- const label: PropTypes.Requireable<string>;
12
- const formProps: PropTypes.Requireable<object>;
13
- const Input: PropTypes.Validator<NonNullable<PropTypes.ReactComponentLike>>;
11
+ let name: PropTypes.Validator<string>;
12
+ let label: PropTypes.Requireable<string>;
13
+ let formProps: PropTypes.Requireable<object>;
14
+ let Input: PropTypes.Validator<NonNullable<PropTypes.ReactComponentLike>>;
14
15
  }
15
16
  }
16
- import PropTypes from 'prop-types';
@@ -1,3 +1,4 @@
1
+ import { default as PropTypes } from 'prop-types';
1
2
  export default CheckboxInput;
2
3
  declare function CheckboxInput({ name, label, formProps }: {
3
4
  name: any;
@@ -6,9 +7,8 @@ declare function CheckboxInput({ name, label, formProps }: {
6
7
  }): import("react/jsx-runtime").JSX.Element;
7
8
  declare namespace CheckboxInput {
8
9
  namespace propTypes {
9
- const name: PropTypes.Validator<string>;
10
- const label: PropTypes.Requireable<string>;
11
- const formProps: PropTypes.Requireable<object>;
10
+ let name: PropTypes.Validator<string>;
11
+ let label: PropTypes.Requireable<string>;
12
+ let formProps: PropTypes.Requireable<object>;
12
13
  }
13
14
  }
14
- import PropTypes from 'prop-types';
@@ -1,3 +1,4 @@
1
+ import { default as PropTypes } from 'prop-types';
1
2
  export default SwitchInput;
2
3
  declare function SwitchInput({ name, label, formProps }: {
3
4
  name: any;
@@ -6,9 +7,8 @@ declare function SwitchInput({ name, label, formProps }: {
6
7
  }): import("react/jsx-runtime").JSX.Element;
7
8
  declare namespace SwitchInput {
8
9
  namespace propTypes {
9
- const name: PropTypes.Validator<string>;
10
- const label: PropTypes.Requireable<string>;
11
- const formProps: PropTypes.Requireable<object>;
10
+ let name: PropTypes.Validator<string>;
11
+ let label: PropTypes.Requireable<string>;
12
+ let formProps: PropTypes.Requireable<object>;
12
13
  }
13
14
  }
14
- import PropTypes from 'prop-types';
@@ -1,12 +1,6 @@
1
- /**
2
- * Copyright (c) 2023, RTE (http://www.rte-france.com)
3
- * This Source Code Form is subject to the terms of the Mozilla Public
4
- * License, v. 2.0. If a copy of the MPL was not distributed with this
5
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
- */
7
- /// <reference types="node" />
8
- import { FunctionComponent } from 'react';
9
1
  import { UUID } from 'crypto';
2
+ import { FunctionComponent } from 'react';
3
+
10
4
  export declare const NAME = "name";
11
5
  interface DirectoryItemsInputProps {
12
6
  label: string | undefined;
@@ -1,18 +1,18 @@
1
1
  export default FloatInput;
2
2
  declare function FloatInput(props: any): import("react/jsx-runtime").JSX.Element;
3
3
  declare namespace FloatInput {
4
- const propTypes: {
5
- name: import("prop-types").Requireable<string>;
6
- label: import("prop-types").Requireable<string>;
7
- labelValues: import("prop-types").Requireable<object>;
8
- id: import("prop-types").Requireable<string>;
9
- adornment: import("prop-types").Requireable<object>;
10
- customAdornment: import("prop-types").Requireable<object>;
11
- outputTransform: import("prop-types").Requireable<(...args: any[]) => any>;
12
- inputTransform: import("prop-types").Requireable<(...args: any[]) => any>;
13
- acceptValue: import("prop-types").Requireable<(...args: any[]) => any>;
14
- previousValue: import("prop-types").Requireable<any>;
15
- clearable: import("prop-types").Requireable<boolean>;
16
- formProps: import("prop-types").Requireable<object>;
4
+ let propTypes: {
5
+ name: import('prop-types').Requireable<string>;
6
+ label: import('prop-types').Requireable<string>;
7
+ labelValues: import('prop-types').Requireable<object>;
8
+ id: import('prop-types').Requireable<string>;
9
+ adornment: import('prop-types').Requireable<object>;
10
+ customAdornment: import('prop-types').Requireable<object>;
11
+ outputTransform: import('prop-types').Requireable<(...args: any[]) => any>;
12
+ inputTransform: import('prop-types').Requireable<(...args: any[]) => any>;
13
+ acceptValue: import('prop-types').Requireable<(...args: any[]) => any>;
14
+ previousValue: import('prop-types').Requireable<any>;
15
+ clearable: import('prop-types').Requireable<boolean>;
16
+ formProps: import('prop-types').Requireable<object>;
17
17
  };
18
18
  }
@@ -1,18 +1,18 @@
1
1
  export default IntegerInput;
2
2
  declare function IntegerInput(props: any): import("react/jsx-runtime").JSX.Element;
3
3
  declare namespace IntegerInput {
4
- const propTypes: {
5
- name: import("prop-types").Requireable<string>;
6
- label: import("prop-types").Requireable<string>;
7
- labelValues: import("prop-types").Requireable<object>;
8
- id: import("prop-types").Requireable<string>;
9
- adornment: import("prop-types").Requireable<object>;
10
- customAdornment: import("prop-types").Requireable<object>;
11
- outputTransform: import("prop-types").Requireable<(...args: any[]) => any>;
12
- inputTransform: import("prop-types").Requireable<(...args: any[]) => any>;
13
- acceptValue: import("prop-types").Requireable<(...args: any[]) => any>;
14
- previousValue: import("prop-types").Requireable<any>;
15
- clearable: import("prop-types").Requireable<boolean>;
16
- formProps: import("prop-types").Requireable<object>;
4
+ let propTypes: {
5
+ name: import('prop-types').Requireable<string>;
6
+ label: import('prop-types').Requireable<string>;
7
+ labelValues: import('prop-types').Requireable<object>;
8
+ id: import('prop-types').Requireable<string>;
9
+ adornment: import('prop-types').Requireable<object>;
10
+ customAdornment: import('prop-types').Requireable<object>;
11
+ outputTransform: import('prop-types').Requireable<(...args: any[]) => any>;
12
+ inputTransform: import('prop-types').Requireable<(...args: any[]) => any>;
13
+ acceptValue: import('prop-types').Requireable<(...args: any[]) => any>;
14
+ previousValue: import('prop-types').Requireable<any>;
15
+ clearable: import('prop-types').Requireable<boolean>;
16
+ formProps: import('prop-types').Requireable<object>;
17
17
  };
18
18
  }
@@ -1,3 +1,4 @@
1
+ import { default as PropTypes } from 'prop-types';
1
2
  export default RadioInput;
2
3
  declare function RadioInput({ name, label, id, options, formProps }: {
3
4
  name: any;
@@ -8,11 +9,10 @@ declare function RadioInput({ name, label, id, options, formProps }: {
8
9
  }): import("react/jsx-runtime").JSX.Element;
9
10
  declare namespace RadioInput {
10
11
  namespace propTypes {
11
- const name: PropTypes.Validator<string>;
12
- const label: PropTypes.Requireable<string>;
13
- const id: PropTypes.Requireable<string>;
14
- const options: PropTypes.Validator<any[]>;
15
- const formProps: PropTypes.Requireable<object>;
12
+ let name: PropTypes.Validator<string>;
13
+ let label: PropTypes.Requireable<string>;
14
+ let id: PropTypes.Requireable<string>;
15
+ let options: PropTypes.Validator<any[]>;
16
+ let formProps: PropTypes.Requireable<object>;
16
17
  }
17
18
  }
18
- import PropTypes from 'prop-types';
@@ -1,7 +1,8 @@
1
+ import { default as PropTypes } from 'prop-types';
1
2
  export default SelectInput;
2
3
  declare function SelectInput(props: any): import("react/jsx-runtime").JSX.Element;
3
4
  declare namespace SelectInput {
4
- const propTypes: {
5
+ let propTypes: {
5
6
  name: PropTypes.Validator<string>;
6
7
  label: PropTypes.Requireable<string>;
7
8
  options: PropTypes.Validator<any[]>;
@@ -14,4 +15,3 @@ declare namespace SelectInput {
14
15
  formProps: PropTypes.Requireable<object>;
15
16
  };
16
17
  }
17
- import PropTypes from 'prop-types';
@@ -1,3 +1,5 @@
1
+ import { default as PropTypes } from 'prop-types';
2
+ import { identity } from './utils/functions';
1
3
  export default SliderInput;
2
4
  declare function SliderInput({ name, min, max, step, size, onValueChange, }: {
3
5
  name: any;
@@ -9,13 +11,11 @@ declare function SliderInput({ name, min, max, step, size, onValueChange, }: {
9
11
  }): import("react/jsx-runtime").JSX.Element;
10
12
  declare namespace SliderInput {
11
13
  namespace propTypes {
12
- const name: PropTypes.Validator<string>;
13
- const min: PropTypes.Validator<number>;
14
- const max: PropTypes.Validator<number>;
15
- const step: PropTypes.Validator<number>;
16
- const size: PropTypes.Requireable<string>;
17
- const onValueChange: PropTypes.Requireable<(...args: any[]) => any>;
14
+ let name: PropTypes.Validator<string>;
15
+ let min: PropTypes.Validator<number>;
16
+ let max: PropTypes.Validator<number>;
17
+ let step: PropTypes.Validator<number>;
18
+ let size: PropTypes.Requireable<string>;
19
+ let onValueChange: PropTypes.Requireable<(...args: any[]) => any>;
18
20
  }
19
21
  }
20
- import { identity } from './utils/functions';
21
- import PropTypes from 'prop-types';
@@ -1,3 +1,5 @@
1
+ import { default as PropTypes } from 'prop-types';
2
+ import { identity } from './utils/functions';
1
3
  export default TextInput;
2
4
  declare function TextInput({ name, label, labelValues, id, adornment, customAdornment, outputTransform, inputTransform, acceptValue, previousValue, clearable, formProps, }: {
3
5
  name: any;
@@ -15,19 +17,17 @@ declare function TextInput({ name, label, labelValues, id, adornment, customAdor
15
17
  }): import("react/jsx-runtime").JSX.Element;
16
18
  declare namespace TextInput {
17
19
  namespace propTypes {
18
- const name: PropTypes.Requireable<string>;
19
- const label: PropTypes.Requireable<string>;
20
- const labelValues: PropTypes.Requireable<object>;
21
- const id: PropTypes.Requireable<string>;
22
- const adornment: PropTypes.Requireable<object>;
23
- const customAdornment: PropTypes.Requireable<object>;
24
- const outputTransform: PropTypes.Requireable<(...args: any[]) => any>;
25
- const inputTransform: PropTypes.Requireable<(...args: any[]) => any>;
26
- const acceptValue: PropTypes.Requireable<(...args: any[]) => any>;
27
- const previousValue: PropTypes.Requireable<any>;
28
- const clearable: PropTypes.Requireable<boolean>;
29
- const formProps: PropTypes.Requireable<object>;
20
+ let name: PropTypes.Requireable<string>;
21
+ let label: PropTypes.Requireable<string>;
22
+ let labelValues: PropTypes.Requireable<object>;
23
+ let id: PropTypes.Requireable<string>;
24
+ let adornment: PropTypes.Requireable<object>;
25
+ let customAdornment: PropTypes.Requireable<object>;
26
+ let outputTransform: PropTypes.Requireable<(...args: any[]) => any>;
27
+ let inputTransform: PropTypes.Requireable<(...args: any[]) => any>;
28
+ let acceptValue: PropTypes.Requireable<(...args: any[]) => any>;
29
+ let previousValue: PropTypes.Requireable<any>;
30
+ let clearable: PropTypes.Requireable<boolean>;
31
+ let formProps: PropTypes.Requireable<object>;
30
32
  }
31
33
  }
32
- import { identity } from './utils/functions';
33
- import PropTypes from 'prop-types';
@@ -1,10 +1,10 @@
1
+ import { default as PropTypes } from 'prop-types';
1
2
  export default CancelButton;
2
3
  declare function CancelButton({ ...inProps }: {
3
4
  [x: string]: any;
4
5
  }): import("react/jsx-runtime").JSX.Element;
5
6
  declare namespace CancelButton {
6
7
  namespace propTypes {
7
- const buttonProps: PropTypes.Requireable<object>;
8
+ let buttonProps: PropTypes.Requireable<object>;
8
9
  }
9
10
  }
10
- import PropTypes from 'prop-types';
@@ -1,10 +1,10 @@
1
+ import { default as PropTypes } from 'prop-types';
1
2
  export default SubmitButton;
2
3
  declare function SubmitButton({ ...buttonProps }: {
3
4
  [x: string]: any;
4
5
  }): import("react/jsx-runtime").JSX.Element;
5
6
  declare namespace SubmitButton {
6
7
  namespace propTypes {
7
- const buttonProps: PropTypes.Requireable<object>;
8
+ let buttonProps: PropTypes.Requireable<object>;
8
9
  }
9
10
  }
10
- import PropTypes from 'prop-types';
@@ -1,12 +1,12 @@
1
+ import { default as PropTypes } from 'prop-types';
1
2
  export default TextFieldWithAdornment;
2
3
  declare function TextFieldWithAdornment(props: any): import("react/jsx-runtime").JSX.Element;
3
4
  declare namespace TextFieldWithAdornment {
4
5
  namespace propTypes {
5
- const adornmentPosition: PropTypes.Validator<string>;
6
- const adornmentText: PropTypes.Validator<string>;
7
- const value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
8
- const variant: PropTypes.Requireable<string>;
9
- const handleClearValue: PropTypes.Requireable<(...args: any[]) => any>;
6
+ let adornmentPosition: PropTypes.Validator<string>;
7
+ let adornmentText: PropTypes.Validator<string>;
8
+ let value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
9
+ let variant: PropTypes.Requireable<string>;
10
+ let handleClearValue: PropTypes.Requireable<(...args: any[]) => any>;
10
11
  }
11
12
  }
12
- import PropTypes from 'prop-types';
@@ -1,5 +1,5 @@
1
1
  export default common_button_en;
2
2
  declare namespace common_button_en {
3
- const cancel: string;
4
- const validate: string;
3
+ let cancel: string;
4
+ let validate: string;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  export default common_button_fr;
2
2
  declare namespace common_button_fr {
3
- const cancel: string;
4
- const validate: string;
3
+ let cancel: string;
4
+ let validate: string;
5
5
  }
@@ -5,4 +5,4 @@
5
5
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
6
  */
7
7
  /// <reference types="react" />
8
- export declare function useIntlRef(): import("react").MutableRefObject<import("react-intl").IntlShape>;
8
+ export declare function useIntlRef(): import('react').MutableRefObject<import("react-intl").IntlShape>;
package/dist/index.d.ts CHANGED
@@ -1,20 +1,7 @@
1
- /**
2
- * Copyright (c) 2024, RTE (http://www.rte-france.com)
3
- * This Source Code Form is subject to the terms of the Mozilla Public
4
- * License, v. 2.0. If a copy of the MPL was not distributed with this
5
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
- */
1
+ import { ButtonProps, SwitchProps, CheckboxProps, RadioGroupProps, SxProps, TextFieldProps } from '@mui/material';
2
+ import { AutocompleteProps } from '@mui/material/Autocomplete/Autocomplete';
3
+ import { FunctionComponent, ReactElement } from 'react';
7
4
 
8
- import type { FunctionComponent, ReactElement } from 'react';
9
- import type { AutocompleteProps } from '@mui/material/Autocomplete/Autocomplete';
10
- import type {
11
- ButtonProps,
12
- SwitchProps,
13
- CheckboxProps,
14
- RadioGroupProps,
15
- SxProps,
16
- TextFieldProps,
17
- } from '@mui/material';
18
5
 
19
6
  /**
20
7
  * Section to export generated type declarations
@@ -1,3 +1,4 @@
1
+ import { UserManagerMock } from './UserManagerMock';
1
2
  export function initializeAuthenticationDev(dispatch: any, isSilentRenew: any, validateUser: any, isSigninCallback: any): Promise<UserManagerMock>;
2
3
  export function initializeAuthenticationProd(dispatch: any, isSilentRenew: any, idpSettings: any, validateUser: any, authorizationCodeFlowEnabled: any, isSigninCallback: any): any;
3
4
  export function handleSilentRenewCallback(userManagerInstance: any): void;
@@ -6,4 +7,3 @@ export function logout(dispatch: any, userManagerInstance: any): any;
6
7
  export function dispatchUser(dispatch: any, userManagerInstance: any, validateUser: any): any;
7
8
  export function handleSigninCallback(dispatch: any, navigate: any, userManagerInstance: any): void;
8
9
  export function getPreLoginPath(): string | null;
9
- import { UserManagerMock } from './UserManagerMock';
@@ -1,7 +1,7 @@
1
1
  import { Log, UserManager } from "oidc-client";
2
2
  import { UserManagerMock } from "./UserManagerMock.js";
3
3
  import { setShowAuthenticationRouterLogin, setLoggedUser, setLogoutError, setUnauthorizedUserInfo, setUserValidationError, setSignInCallbackError, resetAuthenticationRouterError } from "./actions.js";
4
- import jwtDecode from "jwt-decode";
4
+ import { jwtDecode } from "jwt-decode";
5
5
  window.OIDCLog = Log;
6
6
  const hackAuthorityKey = "oidc.hack.authority";
7
7
  const oidcHackReloadedKey = "gridsuite-oidc-hack-reloaded";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsuite/commons-ui",
3
- "version": "0.52.0",
3
+ "version": "0.52.1",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "engines": {
6
6
  "npm": ">=9",
@@ -24,86 +24,89 @@
24
24
  "test": "jest",
25
25
  "test:coverage": "jest --coverage",
26
26
  "test:watch": "jest --watch",
27
- "lint": "eslint . --ext js,mjs,jsx,ts,mts,tsx --max-warnings 0"
27
+ "lint": "eslint . --ext js,mjs,jsx,ts,mts,tsx --max-warnings 0",
28
+ "licenses-check": "license-checker --summary --excludePrivatePackages --production --onlyAllow \"$( jq -r .onlyAllow[] license-checker-config.json | tr '\n' ';')\" --excludePackages \"$( jq -r .excludePackages[] license-checker-config.json | tr '\n' ';')\""
28
29
  },
29
30
  "dependencies": {
30
- "autosuggest-highlight": "^3.2.0",
31
- "clsx": "^1.0.4",
32
- "jwt-decode": "^3.0.0",
31
+ "autosuggest-highlight": "^3.3.4",
32
+ "clsx": "^2.1.0",
33
+ "jwt-decode": "^4.0.0",
33
34
  "memoize-one": "^6.0.0",
34
- "oidc-client": "^1.10.1",
35
- "prop-types": "^15.7.2",
36
- "react-csv-downloader": "^2.7.0",
35
+ "oidc-client": "^1.11.5",
36
+ "prop-types": "^15.8.1",
37
+ "react-csv-downloader": "^3.1.0",
37
38
  "react-request-fullscreen": "^1.1.2",
38
39
  "react-virtualized": "^9.22.5",
39
- "uuid": "^3.4.0"
40
+ "uuid": "^9.0.1"
40
41
  },
41
42
  "peerDependencies": {
42
- "@emotion/react": "^11.8.1",
43
- "@emotion/styled": "^11.8.1",
44
- "@mui/icons-material": "^5.5.0",
45
- "@mui/lab": "^5.0.0-alpha.72",
46
- "@mui/material": "^5.5.0",
47
- "@hookform/resolvers": "^3.0.0",
48
- "notistack": "^3.0.0",
49
- "react-router-dom": "^6.0.0",
50
- "react": "^18.0.0",
51
- "react-dom": "^18.0.0",
52
- "react-intl": "^6.0.0",
53
- "react-hook-form": "^7.41.0",
54
- "yup": "^1.0.0"
43
+ "@emotion/react": "^11.11.4",
44
+ "@emotion/styled": "^11.11.0",
45
+ "@hookform/resolvers": "^3.3.4",
46
+ "@mui/icons-material": "^5.15.14",
47
+ "@mui/lab": "5.0.0-alpha.169",
48
+ "@mui/material": "^5.15.14",
49
+ "notistack": "^3.0.1",
50
+ "react": "^18.2.0",
51
+ "react-dom": "^18.2.0",
52
+ "react-hook-form": "^7.51.2",
53
+ "react-intl": "^6.6.4",
54
+ "react-router-dom": "^6.22.3",
55
+ "yup": "^1.4.0"
55
56
  },
56
57
  "devDependencies": {
57
- "@babel/preset-env": "^7.23.8",
58
- "@babel/preset-react": "^7.23.3",
59
- "@babel/preset-typescript": "^7.23.3",
60
- "@emotion/react": "^11.8.1",
61
- "@emotion/styled": "^11.8.1",
62
- "@mui/icons-material": "^5.5.0",
63
- "@mui/lab": "^5.0.0-alpha.72",
64
- "@mui/material": "^5.5.0",
65
- "@mui/styles": "^5.5.0",
66
- "@hookform/resolvers": "^3.0.0",
67
- "@babel/helper-builder-react-jsx": "7.15.4",
68
- "@types/react": "^18.2.56",
69
- "@types/react-dom": "^18.2.19",
70
- "@typescript-eslint/eslint-plugin": "5.62.0",
71
- "@typescript-eslint/parser": "5.62.0",
58
+ "@babel/helper-builder-react-jsx": "^7.22.10",
59
+ "@babel/preset-env": "^7.24.3",
60
+ "@babel/preset-react": "^7.24.1",
61
+ "@babel/preset-typescript": "^7.24.1",
62
+ "@emotion/react": "^11.11.4",
63
+ "@emotion/styled": "^11.11.5",
64
+ "@hookform/resolvers": "^3.3.4",
65
+ "@mui/icons-material": "^5.15.14",
66
+ "@mui/lab": "5.0.0-alpha.169",
67
+ "@mui/material": "^5.15.14",
68
+ "@mui/styles": "^5.15.14",
69
+ "@mui/x-tree-view": "^6.17.0",
70
+ "@react-hook/window-size": "^3.1.1",
71
+ "@types/react": "^18.2.73",
72
+ "@types/react-dom": "^18.2.23",
73
+ "@typescript-eslint/eslint-plugin": "^6.21.0",
74
+ "@typescript-eslint/parser": "^6.21.0",
72
75
  "@vitejs/plugin-react": "^4.2.1",
73
76
  "babel-eslint": "^10.1.0",
74
- "bufferutil": "^4.0.1",
75
- "eslint": "^7.9.0",
76
- "eslint-config-prettier": "^8.0.0",
77
+ "bufferutil": "^4.0.8",
78
+ "eslint": "^7.32.0",
79
+ "eslint-config-prettier": "^9.1.0",
77
80
  "eslint-config-react-app": "^6.0.0",
78
- "eslint-plugin-flowtype": "^5.2.0",
79
- "eslint-plugin-import": "^2.22.0",
80
- "eslint-plugin-jsx-a11y": "^6.3.1",
81
- "eslint-plugin-prettier": "^4.0.0",
82
- "eslint-plugin-react": "^7.21.0",
83
- "eslint-plugin-react-hooks": "^4.1.2",
84
- "glob": "^10.3.10",
81
+ "eslint-plugin-flowtype": "^8.0.3",
82
+ "eslint-plugin-import": "^2.29.1",
83
+ "eslint-plugin-jsx-a11y": "^6.8.0",
84
+ "eslint-plugin-prettier": "^4.2.1",
85
+ "eslint-plugin-react": "^7.34.1",
86
+ "eslint-plugin-react-hooks": "^4.6.0",
87
+ "glob": "^10.3.12",
85
88
  "jest": "^29.7.0",
86
89
  "jest-environment-jsdom": "^29.7.0",
87
90
  "jest-svg-transformer": "^1.0.0",
88
- "notistack": "^3.0.0",
89
- "prettier": "^2.0.0",
90
- "react": "^18.0.0",
91
- "react-dom": "^18.0.0",
92
- "react-intl": "^6.0.0",
93
- "react-hook-form": "^7.41.0",
94
- "react-router-dom": "^6.0.0",
91
+ "license-checker": "^25.0.1",
92
+ "notistack": "^3.0.1",
93
+ "prettier": "^2.8.8",
94
+ "react": "^18.2.0",
95
+ "react-dom": "^18.2.0",
96
+ "react-hook-form": "^7.51.2",
97
+ "react-intl": "^6.6.4",
98
+ "react-resizable": "^3.0.5",
99
+ "react-router-dom": "^6.22.3",
95
100
  "ts-node": "^10.9.2",
96
- "type-fest": "^2.0.0",
101
+ "type-fest": "^4.14.0",
97
102
  "typescript": "5.1.6",
98
- "utf-8-validate": "^5.0.2",
99
- "@react-hook/window-size": "^3.1.1",
100
- "react-resizable": "^3.0.4",
101
- "vite": "^5.0.11",
103
+ "utf-8-validate": "^6.0.3",
104
+ "vite": "^5.2.7",
105
+ "vite-plugin-dts": "^3.8.1",
102
106
  "vite-plugin-eslint": "^1.8.1",
107
+ "vite-plugin-lib-inject-css": "^2.0.1",
103
108
  "vite-plugin-svgr": "^4.2.0",
104
- "vite-plugin-dts": "^2.3.0",
105
- "vite-plugin-lib-inject-css": "^2.0.0",
106
- "yup": "^1.0.0"
109
+ "yup": "^1.4.0"
107
110
  },
108
111
  "author": "gridsuite team",
109
112
  "homepage": "https://github.com/gridsuite",