@gridsuite/commons-ui 0.48.0 → 0.50.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.
Files changed (72) hide show
  1. package/dist/components/AuthenticationRouter/AuthenticationRouter.js +5 -11
  2. package/dist/components/AuthenticationRouter/index.js +4 -0
  3. package/dist/components/CardErrorBoundary/card-error-boundary.d.ts +2 -2
  4. package/dist/components/CardErrorBoundary/card-error-boundary.js +2 -2
  5. package/dist/components/CardErrorBoundary/index.js +4 -0
  6. package/dist/components/DirectoryItemSelector/directory-item-selector.d.ts +9 -0
  7. package/dist/components/DirectoryItemSelector/directory-item-selector.js +20 -4
  8. package/dist/components/ElementSearchDialog/element-search-dialog.js +3 -3
  9. package/dist/components/ElementSearchDialog/equipment-item.js +0 -1
  10. package/dist/components/ElementSearchDialog/index.js +6 -0
  11. package/dist/components/ElementSearchDialog/tag-renderer.js +0 -1
  12. package/dist/components/FlatParameters/FlatParameters.js +5 -5
  13. package/dist/components/FlatParameters/index.js +4 -0
  14. package/dist/components/Login/Login.js +0 -1
  15. package/dist/components/Login/Logout.js +0 -1
  16. package/dist/components/Login/index.js +4 -0
  17. package/dist/components/MuiVirtualizedTable/ColumnHeader.d.ts +2 -3
  18. package/dist/components/MuiVirtualizedTable/ColumnHeader.js +5 -5
  19. package/dist/components/MuiVirtualizedTable/KeyedColumnsRowIndexer.js +5 -0
  20. package/dist/components/MuiVirtualizedTable/MuiVirtualizedTable.d.ts +4 -4
  21. package/dist/components/MuiVirtualizedTable/MuiVirtualizedTable.js +3 -3
  22. package/dist/components/MuiVirtualizedTable/index.js +8 -0
  23. package/dist/components/MultipleSelectionDialog/MultipleSelectionDialog.js +3 -3
  24. package/dist/components/MultipleSelectionDialog/index.js +4 -0
  25. package/dist/components/OverflowableText/index.js +4 -0
  26. package/dist/components/ReportViewer/index.js +4 -0
  27. package/dist/components/ReportViewer/log-table.d.ts +1 -2
  28. package/dist/components/ReportViewer/multi-select-list.js +0 -1
  29. package/dist/components/ReportViewerDialog/index.js +4 -0
  30. package/dist/components/SignInCallbackHandler/index.js +4 -0
  31. package/dist/components/SilentRenewCallbackHandler/index.js +4 -0
  32. package/dist/components/SnackbarProvider/SnackbarProvider.d.ts +1 -2
  33. package/dist/components/SnackbarProvider/SnackbarProvider.js +2 -2
  34. package/dist/components/SnackbarProvider/index.js +4 -0
  35. package/dist/components/TopBar/GridLogo.js +0 -1
  36. package/dist/components/TopBar/TopBar.js +3 -3
  37. package/dist/components/TopBar/index.js +8 -0
  38. package/dist/components/TreeViewFinder/TreeViewFinder.d.ts +4 -2
  39. package/dist/components/TreeViewFinder/TreeViewFinder.js +2 -1
  40. package/dist/components/TreeViewFinder/index.js +5 -0
  41. package/dist/components/react-hook-form/ExpandingTextField.d.ts +20 -0
  42. package/dist/components/react-hook-form/ExpandingTextField.js +106 -0
  43. package/dist/components/react-hook-form/autocomplete-input.js +0 -1
  44. package/dist/components/react-hook-form/booleans/checkbox-input.js +0 -1
  45. package/dist/components/react-hook-form/booleans/switch-input.js +0 -1
  46. package/dist/components/react-hook-form/directory-items-input.js +1 -1
  47. package/dist/components/react-hook-form/error-management/field-error-alert.js +0 -1
  48. package/dist/components/react-hook-form/error-management/mid-form-error.js +0 -1
  49. package/dist/components/react-hook-form/numbers/float-input.js +0 -1
  50. package/dist/components/react-hook-form/numbers/integer-input.js +0 -1
  51. package/dist/components/react-hook-form/radio-input.js +0 -1
  52. package/dist/components/react-hook-form/select-input.js +0 -1
  53. package/dist/components/react-hook-form/slider-input.js +0 -1
  54. package/dist/components/react-hook-form/text-input.js +0 -1
  55. package/dist/components/react-hook-form/utils/cancel-button.js +0 -1
  56. package/dist/components/react-hook-form/utils/field-label.js +0 -1
  57. package/dist/components/react-hook-form/utils/functions.js +0 -1
  58. package/dist/components/react-hook-form/utils/submit-button.js +0 -1
  59. package/dist/components/translations/directory-items-input-en.d.ts +10 -0
  60. package/dist/components/translations/directory-items-input-en.js +6 -0
  61. package/dist/components/translations/directory-items-input-fr.d.ts +10 -0
  62. package/dist/components/translations/directory-items-input-fr.js +6 -0
  63. package/dist/components/translations/inputs-en.d.ts +25 -0
  64. package/dist/components/translations/inputs-en.js +21 -0
  65. package/dist/components/translations/inputs-fr.d.ts +25 -0
  66. package/dist/components/translations/inputs-fr.js +21 -0
  67. package/dist/components/translations/login-en.js +1 -1
  68. package/dist/index.d.ts +106 -12
  69. package/dist/index.js +48 -38
  70. package/dist/utils/AuthService.js +1 -1
  71. package/dist/utils/ElementType.js +0 -1
  72. package/package.json +10 -18
@@ -1,5 +1,5 @@
1
- import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
- import React, { useCallback } from "react";
1
+ import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
+ import { useCallback } from "react";
3
3
  import { Routes, Route, Navigate } from "react-router-dom";
4
4
  import SignInCallbackHandler from "../SignInCallbackHandler/SignInCallbackHandler.js";
5
5
  import { handleSigninCallback, handleSilentRenewCallback, login, logout } from "../../utils/AuthService.js";
@@ -25,7 +25,7 @@ const AuthenticationRouter = ({
25
25
  () => handleSilentRenewCallback(userManager.instance),
26
26
  [userManager.instance]
27
27
  );
28
- return /* @__PURE__ */ jsx(React.Fragment, { children: /* @__PURE__ */ jsxs(
28
+ return /* @__PURE__ */ jsxs(
29
29
  Grid,
30
30
  {
31
31
  container: true,
@@ -68,13 +68,7 @@ const AuthenticationRouter = ({
68
68
  )
69
69
  }
70
70
  ),
71
- /* @__PURE__ */ jsx(
72
- Route,
73
- {
74
- path: "logout-callback",
75
- element: /* @__PURE__ */ jsx(Navigate, { to: "/" })
76
- }
77
- ),
71
+ /* @__PURE__ */ jsx(Route, { path: "logout-callback", element: /* @__PURE__ */ jsx(Navigate, { to: "/" }) }),
78
72
  /* @__PURE__ */ jsx(
79
73
  Route,
80
74
  {
@@ -140,7 +134,7 @@ const AuthenticationRouter = ({
140
134
  ] })
141
135
  ]
142
136
  }
143
- ) });
137
+ );
144
138
  };
145
139
  export {
146
140
  AuthenticationRouter as default
@@ -0,0 +1,4 @@
1
+ import { default as default2 } from "./AuthenticationRouter.js";
2
+ export {
3
+ default2 as default
4
+ };
@@ -1,5 +1,5 @@
1
1
  export default CardErrorBoundary;
2
- declare class CardErrorBoundary extends React.Component<any, any, any> {
2
+ declare class CardErrorBoundary extends Component<any, any, any> {
3
3
  static getDerivedStateFromError(error: any): {
4
4
  hasError: boolean;
5
5
  error: any;
@@ -15,4 +15,4 @@ declare class CardErrorBoundary extends React.Component<any, any, any> {
15
15
  componentDidCatch(error: any, errorInfo: any): void;
16
16
  render(): any;
17
17
  }
18
- import React from 'react';
18
+ import { Component } from 'react';
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import React from "react";
2
+ import { Component } from "react";
3
3
  import { styled, IconButton, Box, Card, CardHeader, CardContent, Typography, CardActions, Collapse } from "@mui/material";
4
4
  import { Replay, ExpandMore as ExpandMore$1 } from "@mui/icons-material";
5
5
  import { FormattedMessage } from "react-intl";
@@ -13,7 +13,7 @@ const ExpandMore = styled((props) => {
13
13
  duration: theme.transitions.duration.shortest
14
14
  })
15
15
  }));
16
- class CardErrorBoundary extends React.Component {
16
+ class CardErrorBoundary extends Component {
17
17
  constructor(props) {
18
18
  super(props);
19
19
  this.state = {
@@ -0,0 +1,4 @@
1
+ import { default as default2 } from "./card-error-boundary.js";
2
+ export {
3
+ default2 as default
4
+ };
@@ -17,6 +17,15 @@ interface DirectoryItemSelectorProps {
17
17
  fetchDirectoryContent: (directoryUuid: UUID, elementTypes: string[]) => Promise<any>;
18
18
  fetchRootFolders: (types: string[]) => Promise<any>;
19
19
  fetchElementsInfos: (ids: UUID[], elementTypes: string[], equipmentTypes?: string[]) => Promise<any>;
20
+ classes?: any;
21
+ contentText?: string;
22
+ defaultExpanded?: string[];
23
+ defaultSelected?: string[];
24
+ validationButtonText?: string;
25
+ className?: string;
26
+ cancelButtonProps?: any;
27
+ onlyLeaves?: boolean;
28
+ multiselect?: boolean;
20
29
  }
21
30
  declare const DirectoryItemSelector: FunctionComponent<DirectoryItemSelectorProps>;
22
31
  export default DirectoryItemSelector;
@@ -19,7 +19,16 @@ const DirectoryItemSelector = ({
19
19
  itemFilter,
20
20
  fetchDirectoryContent,
21
21
  fetchRootFolders,
22
- fetchElementsInfos
22
+ fetchElementsInfos,
23
+ classes,
24
+ contentText,
25
+ defaultExpanded,
26
+ defaultSelected,
27
+ validationButtonText,
28
+ className,
29
+ cancelButtonProps,
30
+ onlyLeaves = true,
31
+ multiselect = true
23
32
  }) => {
24
33
  const [data, setData] = useState([]);
25
34
  const [rootDirectories, setRootDirectories] = useState([]);
@@ -150,14 +159,21 @@ const DirectoryItemSelector = ({
150
159
  return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
151
160
  TreeViewFinder,
152
161
  {
153
- multiselect: true,
162
+ multiselect,
154
163
  onTreeBrowse: fetchDirectory,
155
164
  data,
156
- onlyLeaves: true,
165
+ onlyLeaves,
157
166
  sortMethod: sortHandlingDirectories,
158
167
  title,
159
168
  onClose,
160
- open
169
+ open,
170
+ classes,
171
+ contentText,
172
+ defaultExpanded,
173
+ defaultSelected,
174
+ validationButtonText,
175
+ className,
176
+ cancelButtonProps
161
177
  }
162
178
  ) });
163
179
  };
@@ -1,5 +1,5 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import React, { useState, useEffect, useCallback } from "react";
1
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
+ import { useState, useEffect, useCallback } from "react";
3
3
  import { Dialog, DialogContent, Autocomplete, TextField } from "@mui/material";
4
4
  import PropTypes from "prop-types";
5
5
  import { SearchOff, Search } from "@mui/icons-material";
@@ -109,7 +109,7 @@ const ElementSearchDialog = (props) => {
109
109
  }),
110
110
  InputProps: {
111
111
  ...params.InputProps,
112
- startAdornment: /* @__PURE__ */ jsxs(React.Fragment, { children: [
112
+ startAdornment: /* @__PURE__ */ jsxs(Fragment, { children: [
113
113
  searchTermDisabled ? /* @__PURE__ */ jsx(SearchOff, { color: "disabled" }) : /* @__PURE__ */ jsx(Search, { color: "disabled" }),
114
114
  params.InputProps.startAdornment
115
115
  ] })
@@ -6,7 +6,6 @@ import parse from "autosuggest-highlight/parse";
6
6
  import clsx from "clsx";
7
7
  import { FormattedMessage } from "react-intl";
8
8
  import { OverflowableText } from "../OverflowableText/overflowable-text.js";
9
- import "react";
10
9
  import { EQUIPMENT_TYPE } from "../../utils/EquipmentType.js";
11
10
  import { Box } from "@mui/material";
12
11
  import { mergeSx } from "../../utils/styles.js";
@@ -0,0 +1,6 @@
1
+ import { default as default2 } from "./element-search-dialog.js";
2
+ import { TagRenderer } from "./tag-renderer.js";
3
+ export {
4
+ TagRenderer,
5
+ default2 as default
6
+ };
@@ -1,7 +1,6 @@
1
1
  import { jsx, Fragment } from "react/jsx-runtime";
2
2
  import { OverflowableText } from "../OverflowableText/overflowable-text.js";
3
3
  import clsx from "clsx";
4
- import "react";
5
4
  import { EQUIPMENT_TYPE } from "../../utils/EquipmentType.js";
6
5
  import PropTypes from "prop-types";
7
6
  import { mergeSx } from "../../utils/styles.js";
@@ -1,5 +1,5 @@
1
- import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
- import React, { useState, useCallback } from "react";
1
+ import { jsx, jsxs, Fragment as Fragment$1 } from "react/jsx-runtime";
2
+ import { useState, useCallback, Fragment } from "react";
3
3
  import { List, ListItem, Tooltip, Typography, Divider, TextField, Select, MenuItem, IconButton, Autocomplete, Chip, Switch } from "@mui/material";
4
4
  import { Tune } from "@mui/icons-material";
5
5
  import { useIntl, FormattedMessage } from "react-intl";
@@ -245,7 +245,7 @@ const FlatParameters = ({
245
245
  ).map(({ id }) => id);
246
246
  const withDialog = selectionWithDialog(param);
247
247
  if (withDialog) {
248
- return /* @__PURE__ */ jsxs(Fragment, { children: [
248
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
249
249
  /* @__PURE__ */ jsx(
250
250
  TextField,
251
251
  {
@@ -341,7 +341,7 @@ const FlatParameters = ({
341
341
  }
342
342
  case "STRING":
343
343
  if (param.possibleValues) {
344
- return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
344
+ return /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx(
345
345
  Select,
346
346
  {
347
347
  labelId: param.name,
@@ -374,7 +374,7 @@ const FlatParameters = ({
374
374
  );
375
375
  }
376
376
  };
377
- return /* @__PURE__ */ jsx(List, { sx: styles.paramList, children: paramsAsArray.map((param, index) => /* @__PURE__ */ jsxs(React.Fragment, { children: [
377
+ return /* @__PURE__ */ jsx(List, { sx: styles.paramList, children: paramsAsArray.map((param, index) => /* @__PURE__ */ jsxs(Fragment, { children: [
378
378
  /* @__PURE__ */ jsxs(ListItem, { sx: styles.paramListItem, children: [
379
379
  /* @__PURE__ */ jsx(
380
380
  Tooltip,
@@ -0,0 +1,4 @@
1
+ import { FlatParameters } from "./FlatParameters.js";
2
+ export {
3
+ FlatParameters as default
4
+ };
@@ -1,5 +1,4 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import "react";
3
2
  import { Container, Box, Avatar, Typography, Button, Link } from "@mui/material";
4
3
  import { LockOutlined } from "@mui/icons-material";
5
4
  import { FormattedMessage } from "react-intl";
@@ -1,5 +1,4 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import "react";
3
2
  import { Container, Box, Avatar, Typography, Button, Link } from "@mui/material";
4
3
  import { LogoutOutlined } from "@mui/icons-material";
5
4
  import { FormattedMessage } from "react-intl";
@@ -0,0 +1,4 @@
1
+ import { default as default2 } from "./Login.js";
2
+ export {
3
+ default2 as default
4
+ };
@@ -1,4 +1,3 @@
1
- export const ColumnHeader: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
2
- declare const _default: import("@emotion/styled").StyledComponent<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;
4
- import React from 'react';
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import React, { useRef } from "react";
2
+ import { forwardRef, useState, useCallback, useRef, useMemo } from "react";
3
3
  import { ArrowUpward, ArrowDownward, FilterAltOutlined } from "@mui/icons-material";
4
4
  import { styled } from "@mui/system";
5
5
  import { Box } from "@mui/material";
@@ -63,7 +63,7 @@ const FilterButton = (props) => {
63
63
  }
64
64
  );
65
65
  };
66
- const ColumnHeader = React.forwardRef((props, ref) => {
66
+ const ColumnHeader = forwardRef((props, ref) => {
67
67
  const {
68
68
  className,
69
69
  label,
@@ -75,12 +75,12 @@ const ColumnHeader = React.forwardRef((props, ref) => {
75
75
  onContextMenu,
76
76
  style
77
77
  } = props;
78
- const [hovered, setHovered] = React.useState();
79
- const onHover = React.useCallback((evt) => {
78
+ const [hovered, setHovered] = useState();
79
+ const onHover = useCallback((evt) => {
80
80
  setHovered(evt.type === "mouseenter");
81
81
  }, []);
82
82
  const topmostDiv = useRef();
83
- const handleFilterClick = React.useMemo(() => {
83
+ const handleFilterClick = useMemo(() => {
84
84
  if (!onFilterClick) {
85
85
  return void 0;
86
86
  }
@@ -539,10 +539,15 @@ const groupAndSort = (preFilteredRowPairs, codedColumns, groupingColumnsCount, c
539
539
  }
540
540
  return indexedArray;
541
541
  };
542
+ const forTesting = {
543
+ codedColumnsFromKeyAndDirection,
544
+ makeCompositeComparatorFromCodedColumns
545
+ };
542
546
  export {
543
547
  CHANGE_WAYS,
544
548
  KeyedColumnsRowIndexer,
545
549
  collectibleHelper,
550
+ forTesting,
546
551
  getHelper,
547
552
  noOpHelper
548
553
  };
@@ -34,11 +34,11 @@ declare const _default: import("@emotion/styled").StyledComponent<Pick<PropTypes
34
34
  enableExportCSV?: boolean | null | undefined;
35
35
  rowHeight?: number | null | undefined;
36
36
  } & {} & import("@mui/system").MUIStyledCommonProps<import("@mui/system").Theme>, {}, {
37
- ref?: React.Ref<MuiVirtualizedTable> | undefined;
37
+ ref?: import("react").Ref<MuiVirtualizedTable> | undefined;
38
38
  }>;
39
39
  export default _default;
40
40
  import PropTypes from 'prop-types';
41
- declare class MuiVirtualizedTable extends React.PureComponent<any, any, any> {
41
+ declare class MuiVirtualizedTable extends PureComponent<any, any, any> {
42
42
  static defaultProps: {
43
43
  headerHeight: number;
44
44
  rowHeight: number;
@@ -49,7 +49,7 @@ declare class MuiVirtualizedTable extends React.PureComponent<any, any, any> {
49
49
  _computeHeaderSize(): void;
50
50
  _registerHeader(label: any, header: any): void;
51
51
  _registerObserver(element: any): void;
52
- headers: React.RefObject<any>;
52
+ headers: import("react").RefObject<any>;
53
53
  observer: IntersectionObserver;
54
54
  state: {
55
55
  headerHeight: any;
@@ -128,4 +128,4 @@ declare namespace MuiVirtualizedTable {
128
128
  const tooltipSx: PropTypes.Requireable<object>;
129
129
  }
130
130
  }
131
- import React from 'react';
131
+ import { PureComponent } from 'react';
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => {
5
5
  return value;
6
6
  };
7
7
  import { jsx, jsxs } from "react/jsx-runtime";
8
- import React, { createRef } from "react";
8
+ import { PureComponent, createRef } from "react";
9
9
  import { FormattedMessage } from "react-intl";
10
10
  import PropTypes from "prop-types";
11
11
  import clsx from "clsx";
@@ -17,7 +17,7 @@ import { Table, Column, AutoSizer } from "react-virtualized";
17
17
  import CsvDownloader from "react-csv-downloader";
18
18
  import { OverflowableText } from "../OverflowableText/overflowable-text.js";
19
19
  import { toNestedGlobalSelectors, makeComposeClasses } from "../../utils/styles.js";
20
- import { getHelper, collectibleHelper, KeyedColumnsRowIndexer, CHANGE_WAYS } from "./KeyedColumnsRowIndexer.js";
20
+ import { getHelper, collectibleHelper, CHANGE_WAYS, KeyedColumnsRowIndexer } from "./KeyedColumnsRowIndexer.js";
21
21
  import ColumnHeader from "./ColumnHeader.js";
22
22
  function getTextWidth(text) {
23
23
  let canvas = getTextWidth.canvas || (getTextWidth.canvas = document.createElement("canvas"));
@@ -182,7 +182,7 @@ const reorderIndex = memoize(
182
182
  return makeIndexRecord(null, rows);
183
183
  }
184
184
  );
185
- class MuiVirtualizedTable extends React.PureComponent {
185
+ class MuiVirtualizedTable extends PureComponent {
186
186
  constructor(props, context) {
187
187
  super(props, context);
188
188
  __publicField(this, "setVersion", (v) => {
@@ -0,0 +1,8 @@
1
+ import { default as default2, generateMuiVirtualizedTableClass } from "./MuiVirtualizedTable.js";
2
+ import { CHANGE_WAYS, KeyedColumnsRowIndexer } from "./KeyedColumnsRowIndexer.js";
3
+ export {
4
+ CHANGE_WAYS,
5
+ KeyedColumnsRowIndexer,
6
+ default2 as default,
7
+ generateMuiVirtualizedTableClass
8
+ };
@@ -1,7 +1,7 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { Dialog, DialogTitle, DialogContent, Grid, FormControlLabel, Checkbox, List, DialogActions, Button } from "@mui/material";
3
3
  import { FormattedMessage } from "react-intl";
4
- import React, { useState } from "react";
4
+ import { useState } from "react";
5
5
  const MultipleSelectionDialog = ({
6
6
  options,
7
7
  selectedOptions,
@@ -52,7 +52,7 @@ const MultipleSelectionDialog = ({
52
52
  /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(List, { children: options.map((option) => {
53
53
  const optionId = (option == null ? void 0 : option.id) ?? option;
54
54
  const label = getOptionLabel(option);
55
- return /* @__PURE__ */ jsx(React.Fragment, { children: /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
55
+ return /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
56
56
  FormControlLabel,
57
57
  {
58
58
  label,
@@ -68,7 +68,7 @@ const MultipleSelectionDialog = ({
68
68
  }
69
69
  )
70
70
  }
71
- ) }) }, optionId);
71
+ ) }, optionId);
72
72
  }) }) })
73
73
  ] }) }),
74
74
  /* @__PURE__ */ jsxs(DialogActions, { children: [
@@ -0,0 +1,4 @@
1
+ import { default as default2 } from "./MultipleSelectionDialog.js";
2
+ export {
3
+ default2 as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { OverflowableText } from "./overflowable-text.js";
2
+ export {
3
+ OverflowableText as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { default as default2 } from "./report-viewer.js";
2
+ export {
3
+ default2 as default
4
+ };
@@ -1,8 +1,7 @@
1
- declare const _default: 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;
5
5
  setSelectedSeverity: any;
6
6
  }) => import("react/jsx-runtime").JSX.Element>;
7
7
  export default _default;
8
- import React from 'react';
@@ -1,5 +1,4 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import "react";
3
2
  import { Menu, MenuItem, FormControlLabel, Checkbox } from "@mui/material";
4
3
  const styles = {
5
4
  label: {
@@ -0,0 +1,4 @@
1
+ import { default as default2 } from "./report-viewer-dialog.js";
2
+ export {
3
+ default2 as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { default as default2 } from "./SignInCallbackHandler.js";
2
+ export {
3
+ default2 as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { default as default2 } from "./SilentRenewCallbackHandler.js";
2
+ export {
3
+ default2 as default
4
+ };
@@ -1,3 +1,2 @@
1
1
  export default SnackbarProvider;
2
- declare const SnackbarProvider: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
3
- import React from 'react';
2
+ declare const SnackbarProvider: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
@@ -1,8 +1,8 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import React, { useRef } from "react";
2
+ import { forwardRef, useRef } from "react";
3
3
  import { Button } from "@mui/material";
4
4
  import { SnackbarProvider as SnackbarProvider$1 } from "notistack";
5
- const SnackbarProvider = React.forwardRef((props, ref) => {
5
+ const SnackbarProvider = forwardRef((props, ref) => {
6
6
  const innerRef = useRef();
7
7
  const notistackRef = ref || innerRef;
8
8
  return /* @__PURE__ */ jsx(
@@ -0,0 +1,4 @@
1
+ import { default as default2 } from "./SnackbarProvider.js";
2
+ export {
3
+ default2 as default
4
+ };
@@ -1,5 +1,4 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import "react";
3
2
  import { Box, Typography } from "@mui/material";
4
3
  import { BrokenImage } from "@mui/icons-material";
5
4
  import { mergeSx } from "../../utils/styles.js";
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
- import React, { useRef, useState, useMemo } from "react";
2
+ import { useState, useRef, useMemo } from "react";
3
3
  import { FormattedMessage } from "react-intl";
4
4
  import { Menu, MenuItem, ListItemIcon, AppBar, Toolbar, Box, IconButton, ListItemText, Button, Popper, Paper, ClickAwayListener, MenuList, Typography, ToggleButtonGroup, ToggleButton, darken } from "@mui/material";
5
5
  import { Apps, ArrowDropUp, ArrowDropDown, Person, WbSunny, Brightness3, Computer, Settings, HelpOutline, FullscreenExit, Fullscreen, ExitToApp } from "@mui/icons-material";
@@ -130,8 +130,8 @@ const TopBar = ({
130
130
  onLanguageClick,
131
131
  language
132
132
  }) => {
133
- const [anchorElSettingsMenu, setAnchorElSettingsMenu] = React.useState(null);
134
- const [anchorElAppsMenu, setAnchorElAppsMenu] = React.useState(null);
133
+ const [anchorElSettingsMenu, setAnchorElSettingsMenu] = useState(null);
134
+ const [anchorElAppsMenu, setAnchorElAppsMenu] = useState(null);
135
135
  const fullScreenRef = useRef(null);
136
136
  const [isFullScreen, setIsFullScreen] = useState(false);
137
137
  const handleToggleSettingsMenu = (event) => {
@@ -0,0 +1,8 @@
1
+ import { default as default2 } from "./TopBar.js";
2
+ import { LogoText } from "./GridLogo.js";
3
+ import { default as default3 } from "./AboutDialog.js";
4
+ export {
5
+ default3 as AboutDialog,
6
+ LogoText,
7
+ default2 as default
8
+ };
@@ -18,7 +18,8 @@ declare const _default: import("@emotion/styled").StyledComponent<Pick<PropTypes
18
18
  multiselect: PropTypes.Requireable<boolean>;
19
19
  sortMethod: PropTypes.Requireable<(...args: any[]) => any>;
20
20
  cancelButtonProps: PropTypes.Requireable<object>;
21
- }>, "title" | "onClose" | "onTreeBrowse" | "contentText" | "validationButtonText" | "cancelButtonProps" | PropTypes.RequiredKeys<{
21
+ className: PropTypes.Requireable<string>;
22
+ }>, "className" | "title" | "onClose" | "contentText" | "validationButtonText" | "cancelButtonProps" | "onTreeBrowse" | PropTypes.RequiredKeys<{
22
23
  open: PropTypes.Validator<boolean>;
23
24
  onClose: PropTypes.Requireable<(...args: any[]) => any>;
24
25
  data: PropTypes.Validator<(PropTypes.InferProps<{
@@ -37,10 +38,11 @@ declare const _default: import("@emotion/styled").StyledComponent<Pick<PropTypes
37
38
  multiselect: PropTypes.Requireable<boolean>;
38
39
  sortMethod: PropTypes.Requireable<(...args: any[]) => any>;
39
40
  cancelButtonProps: PropTypes.Requireable<object>;
41
+ className: PropTypes.Requireable<string>;
40
42
  }>> & {
41
43
  classes?: object | null | undefined;
42
- defaultSelected?: (string | null | undefined)[] | null | undefined;
43
44
  defaultExpanded?: (string | null | undefined)[] | null | undefined;
45
+ defaultSelected?: (string | null | undefined)[] | null | undefined;
44
46
  onlyLeaves?: boolean | null | undefined;
45
47
  multiselect?: boolean | null | undefined;
46
48
  sortMethod?: ((...args: any[]) => any) | null | undefined;
@@ -267,7 +267,8 @@ TreeViewFinder.propTypes = {
267
267
  onlyLeaves: PropTypes.bool,
268
268
  multiselect: PropTypes.bool,
269
269
  sortMethod: PropTypes.func,
270
- cancelButtonProps: PropTypes.object
270
+ cancelButtonProps: PropTypes.object,
271
+ className: PropTypes.string
271
272
  };
272
273
  TreeViewFinder.defaultProps = {
273
274
  defaultSelected: [],
@@ -0,0 +1,5 @@
1
+ import { default as default2, generateTreeViewFinderClass } from "./TreeViewFinder.js";
2
+ export {
3
+ default2 as default,
4
+ generateTreeViewFinderClass
5
+ };
@@ -0,0 +1,20 @@
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
+ import { TextInputProps } from '../..';
10
+ interface ExpandingTextFieldProps extends TextInputProps {
11
+ name: string;
12
+ maxCharactersNumber?: number;
13
+ rows?: number;
14
+ minRows?: number;
15
+ sx?: any;
16
+ label?: string;
17
+ textFieldFormProps?: TextFieldProps;
18
+ }
19
+ declare const ExpandingTextField: FunctionComponent<ExpandingTextFieldProps>;
20
+ export default ExpandingTextField;