@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
@@ -0,0 +1,106 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { useState } from "react";
3
+ import { Typography } from "@mui/material";
4
+ import { useFormContext, useWatch } from "react-hook-form";
5
+ import "../TreeViewFinder/TreeViewFinder.js";
6
+ import "../TopBar/TopBar.js";
7
+ import "../TopBar/GridLogo.js";
8
+ import "../TopBar/AboutDialog.js";
9
+ import "../SnackbarProvider/SnackbarProvider.js";
10
+ import "react-router-dom";
11
+ import "../../utils/AuthService.js";
12
+ import "@mui/icons-material";
13
+ import "react-intl";
14
+ import "../MuiVirtualizedTable/MuiVirtualizedTable.js";
15
+ import "@mui/lab";
16
+ import "../ReportViewer/report-item.js";
17
+ import "uuid";
18
+ import "../ReportViewer/log-table.js";
19
+ import "../ReportViewer/report-tree-view-context.js";
20
+ import "../OverflowableText/overflowable-text.js";
21
+ import "../ElementSearchDialog/element-search-dialog.js";
22
+ import "../ElementSearchDialog/tag-renderer.js";
23
+ import "autosuggest-highlight/match";
24
+ import "autosuggest-highlight/parse";
25
+ import "clsx";
26
+ import "../CardErrorBoundary/card-error-boundary.js";
27
+ import "notistack";
28
+ import "./autocomplete-input.js";
29
+ import TextInput from "./text-input.js";
30
+ import "./radio-input.js";
31
+ import "./slider-input.js";
32
+ import "./numbers/float-input.js";
33
+ import "./numbers/integer-input.js";
34
+ import "./select-input.js";
35
+ import "./booleans/checkbox-input.js";
36
+ import "./booleans/switch-input.js";
37
+ import "./utils/text-field-with-adornment.js";
38
+ import "./utils/submit-button.js";
39
+ import "./utils/cancel-button.js";
40
+ import "yup";
41
+ import "@mui/icons-material/Folder";
42
+ const ExpandingTextField = ({
43
+ name,
44
+ maxCharactersNumber = 500,
45
+ rows,
46
+ minRows = 1,
47
+ sx,
48
+ label,
49
+ textFieldFormProps,
50
+ ...otherTexFieldProps
51
+ }) => {
52
+ const [isFocused, setIsFocused] = useState(false);
53
+ const { control } = useFormContext();
54
+ const descriptionWatch = useWatch({
55
+ name,
56
+ control
57
+ });
58
+ const handleFocus = () => {
59
+ setIsFocused(true);
60
+ };
61
+ const handleBlur = () => {
62
+ setIsFocused(false);
63
+ };
64
+ const isOverTheLimit = (descriptionWatch == null ? void 0 : descriptionWatch.length) > maxCharactersNumber;
65
+ const descriptionLength = (descriptionWatch == null ? void 0 : descriptionWatch.length) ?? 0;
66
+ const descriptionCounter = descriptionLength + "/" + maxCharactersNumber;
67
+ const rowsToDisplay = isFocused ? rows : minRows;
68
+ const formProps = {
69
+ size: "medium",
70
+ multiline: true,
71
+ onFocus: handleFocus,
72
+ onBlur: handleBlur,
73
+ InputProps: {
74
+ style: {
75
+ textOverflow: "ellipsis",
76
+ overflow: "hidden",
77
+ // disable scrolling
78
+ whiteSpace: "pre",
79
+ resize: "none"
80
+ // or 'horizontal' for horizontal resizing
81
+ }
82
+ },
83
+ helperText: /* @__PURE__ */ jsx(Typography, { variant: "caption", children: descriptionCounter }),
84
+ FormHelperTextProps: {
85
+ sx: {
86
+ ml: "auto",
87
+ color: (theme) => isOverTheLimit ? theme.palette.error.main : theme.palette.text.secondary
88
+ }
89
+ },
90
+ ...rowsToDisplay && { rows: rowsToDisplay },
91
+ ...sx && { sx },
92
+ ...textFieldFormProps
93
+ };
94
+ return /* @__PURE__ */ jsx(
95
+ TextInput,
96
+ {
97
+ name,
98
+ label,
99
+ formProps,
100
+ ...otherTexFieldProps
101
+ }
102
+ );
103
+ };
104
+ export {
105
+ ExpandingTextField as default
106
+ };
@@ -1,5 +1,4 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import "react";
3
2
  import PropTypes from "prop-types";
4
3
  import { Autocomplete, TextField } from "@mui/material";
5
4
  import { useFormContext, useController } from "react-hook-form";
@@ -1,5 +1,4 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import "react";
3
2
  import PropTypes from "prop-types";
4
3
  import BooleanInput from "./boolean-input.js";
5
4
  import { Checkbox } from "@mui/material";
@@ -1,5 +1,4 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import "react";
3
2
  import PropTypes from "prop-types";
4
3
  import BooleanInput from "./boolean-input.js";
5
4
  import { Switch } from "@mui/material";
@@ -88,7 +88,7 @@ const DirectoryItemsInput = ({
88
88
  ) !== void 0) {
89
89
  snackError({
90
90
  messageTxt: "",
91
- headerId: "ElementAlreadyUsed"
91
+ headerId: "directory_items_input/ElementAlreadyUsed"
92
92
  });
93
93
  } else {
94
94
  append(otherElementAttributes);
@@ -1,5 +1,4 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import "react";
3
2
  import { Grid, Alert } from "@mui/material";
4
3
  const FieldErrorAlert = ({ message }) => {
5
4
  return /* @__PURE__ */ jsx(Grid, { item: true, xs: 12, children: /* @__PURE__ */ jsx(Alert, { severity: "error", children: message }) });
@@ -1,5 +1,4 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import "react";
3
2
  import { Box } from "@mui/material";
4
3
  const MidFormError = ({ message }) => {
5
4
  return /* @__PURE__ */ jsx(
@@ -1,5 +1,4 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import "react";
3
2
  import TextInput from "../text-input.js";
4
3
  import { isFloatNumber } from "./utils.js";
5
4
  const normalizeFixed = (number) => {
@@ -1,5 +1,4 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import "react";
3
2
  import TextInput from "../text-input.js";
4
3
  import { isIntegerNumber } from "./utils.js";
5
4
  const IntegerInput = (props) => {
@@ -1,5 +1,4 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import "react";
3
2
  import PropTypes from "prop-types";
4
3
  import { FormControl, FormLabel, RadioGroup, FormControlLabel, Radio } from "@mui/material";
5
4
  import { FormattedMessage } from "react-intl";
@@ -1,5 +1,4 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import "react";
3
2
  import PropTypes from "prop-types";
4
3
  import AutocompleteInput from "./autocomplete-input.js";
5
4
  import { useIntl } from "react-intl";
@@ -1,5 +1,4 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import "react";
3
2
  import PropTypes from "prop-types";
4
3
  import { Slider } from "@mui/material";
5
4
  import { useController } from "react-hook-form";
@@ -1,5 +1,4 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import "react";
3
2
  import PropTypes from "prop-types";
4
3
  import { InputAdornment, IconButton, TextField } from "@mui/material";
5
4
  import { Clear } from "@mui/icons-material";
@@ -1,5 +1,4 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import "react";
3
2
  import { Button } from "@mui/material";
4
3
  import { FormattedMessage } from "react-intl";
5
4
  import PropTypes from "prop-types";
@@ -1,5 +1,4 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import "react";
3
2
  import { FormattedMessage } from "react-intl";
4
3
  const FieldLabel = ({ label, optional, values = void 0 }) => {
5
4
  return /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -1,5 +1,4 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import "react";
3
2
  import { FormattedMessage } from "react-intl";
4
3
  import { getIn } from "yup";
5
4
  function genHelperPreviousValue(previousValue, adornment) {
@@ -1,5 +1,4 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import "react";
3
2
  import { Button } from "@mui/material";
4
3
  import { useFormState } from "react-hook-form";
5
4
  import { FormattedMessage } from "react-intl";
@@ -0,0 +1,10 @@
1
+ export default directory_items_input_en;
2
+ /**
3
+ * Copyright (c) 2024, RTE (http://www.rte-france.com)
4
+ * This Source Code Form is subject to the terms of the Mozilla Public
5
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
6
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
+ */
8
+ declare const directory_items_input_en: {
9
+ 'directory_items_input/ElementAlreadyUsed': string;
10
+ };
@@ -0,0 +1,6 @@
1
+ const directory_items_input_en = {
2
+ "directory_items_input/ElementAlreadyUsed": "This element is already used"
3
+ };
4
+ export {
5
+ directory_items_input_en as default
6
+ };
@@ -0,0 +1,10 @@
1
+ export default directory_items_input_fr;
2
+ /**
3
+ * Copyright (c) 2024, RTE (http://www.rte-france.com)
4
+ * This Source Code Form is subject to the terms of the Mozilla Public
5
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
6
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
+ */
8
+ declare const directory_items_input_fr: {
9
+ 'directory_items_input/ElementAlreadyUsed': string;
10
+ };
@@ -0,0 +1,6 @@
1
+ const directory_items_input_fr = {
2
+ "directory_items_input/ElementAlreadyUsed": "Cet élément est déjà utilisé"
3
+ };
4
+ export {
5
+ directory_items_input_fr as default
6
+ };
@@ -0,0 +1,25 @@
1
+ export default inputs_en;
2
+ /**
3
+ * Copyright (c) 2022, RTE (http://www.rte-france.com)
4
+ * This Source Code Form is subject to the terms of the Mozilla Public
5
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
6
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
+ */
8
+ declare const inputs_en: {
9
+ 'inputs/kiki': string;
10
+ 'inputs/ney': string;
11
+ 'inputs/lapulga': string;
12
+ 'inputs/ibra': string;
13
+ 'inputs/float': string;
14
+ 'inputs/integer': string;
15
+ 'inputs/radio': string;
16
+ 'inputs/select': string;
17
+ 'inputs/slider': string;
18
+ 'inputs/text': string;
19
+ 'inputs/description': string;
20
+ 'inputs/autocomplete': string;
21
+ 'inputs/boolean': string;
22
+ 'inputs/checkbox': string;
23
+ 'inputs/switch': string;
24
+ Optional: string;
25
+ };
@@ -0,0 +1,21 @@
1
+ const inputs_en = {
2
+ "inputs/kiki": "Kylian Mbappe",
3
+ "inputs/ney": "Neymar",
4
+ "inputs/lapulga": "Lionel Messi",
5
+ "inputs/ibra": "Zlatan Ibrahimovic",
6
+ "inputs/float": "Float",
7
+ "inputs/integer": "Integer",
8
+ "inputs/radio": "Radio",
9
+ "inputs/select": "Select",
10
+ "inputs/slider": "Slider",
11
+ "inputs/text": "Text",
12
+ "inputs/description": "Description",
13
+ "inputs/autocomplete": "Autocomplete",
14
+ "inputs/boolean": "Boolean",
15
+ "inputs/checkbox": "Checkbox",
16
+ "inputs/switch": "Switch",
17
+ Optional: "Optional"
18
+ };
19
+ export {
20
+ inputs_en as default
21
+ };
@@ -0,0 +1,25 @@
1
+ export default inputs_fr;
2
+ /**
3
+ * Copyright (c) 2022, RTE (http://www.rte-france.com)
4
+ * This Source Code Form is subject to the terms of the Mozilla Public
5
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
6
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
+ */
8
+ declare const inputs_fr: {
9
+ 'inputs/kiki': string;
10
+ 'inputs/ney': string;
11
+ 'inputs/lapulga': string;
12
+ 'inputs/ibra': string;
13
+ 'inputs/float': string;
14
+ 'inputs/integer': string;
15
+ 'inputs/radio': string;
16
+ 'inputs/select': string;
17
+ 'inputs/slider': string;
18
+ 'inputs/text': string;
19
+ 'inputs/description': string;
20
+ 'inputs/autocomplete': string;
21
+ 'inputs/boolean': string;
22
+ 'inputs/checkbox': string;
23
+ 'inputs/switch': string;
24
+ Optional: string;
25
+ };
@@ -0,0 +1,21 @@
1
+ const inputs_fr = {
2
+ "inputs/kiki": "Kylian Mbappe",
3
+ "inputs/ney": "Neymar",
4
+ "inputs/lapulga": "Lionel Messi",
5
+ "inputs/ibra": "Zlatan Ibrahimovic",
6
+ "inputs/float": "Float",
7
+ "inputs/integer": "Integer",
8
+ "inputs/radio": "Radio",
9
+ "inputs/select": "Select",
10
+ "inputs/slider": "Slider",
11
+ "inputs/text": "Text",
12
+ "inputs/description": "Description",
13
+ "inputs/autocomplete": "Autocomplete",
14
+ "inputs/boolean": "Boolean",
15
+ "inputs/checkbox": "Checkbox",
16
+ "inputs/switch": "Switch",
17
+ Optional: "Optional"
18
+ };
19
+ export {
20
+ inputs_fr as default
21
+ };
@@ -2,7 +2,7 @@ const login_en = {
2
2
  "login/login": "Login",
3
3
  "login/connection": "Connection",
4
4
  "login/unauthorizedAccess": "Unauthorized access",
5
- "login/unauthorizedAccessMessage": "The user {userName} isn't granted yet",
5
+ "login/unauthorizedAccessMessage": "The user {userName} does not have permission to access GridSuite yet.",
6
6
  "login/errorInUserValidation": "Error during user validation",
7
7
  "login/errorInUserValidationMessage": "An unexpected error occured during user validation for {userName}.",
8
8
  "login/errorInLogout": "Error during user logout",
package/dist/index.d.ts CHANGED
@@ -1,3 +1,10 @@
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
+
1
8
  import type { FunctionComponent, ReactElement } from 'react';
2
9
  import type { AutocompleteProps } from '@mui/material/Autocomplete/Autocomplete';
3
10
  import type {
@@ -10,24 +17,113 @@ import type {
10
17
  } from '@mui/material';
11
18
 
12
19
  /**
13
- * Section to export generated type declarations of .ts or .tsx files
20
+ * Section to export generated type declarations
14
21
  */
15
22
 
16
- export { useIntlRef } from './hooks/useIntlRef';
17
- export { RawReadOnlyInput } from './components/react-hook-form/raw-read-only-input';
23
+ export { default as TreeViewFinder } from './components/TreeViewFinder';
24
+ export { default as AboutDialog } from './components/TopBar/AboutDialog';
25
+ export { default as SnackbarProvider } from './components/SnackbarProvider';
26
+ export { default as AuthenticationRouter } from './components/AuthenticationRouter';
27
+ export { default as MuiVirtualizedTable } from './components/MuiVirtualizedTable';
28
+ export {
29
+ KeyedColumnsRowIndexer,
30
+ CHANGE_WAYS,
31
+ } from './components/MuiVirtualizedTable';
32
+ export { default as ReportViewer } from './components/ReportViewer';
33
+ export { default as ReportViewerDialog } from './components/ReportViewerDialog';
34
+ export { default as ElementSearchDialog } from './components/ElementSearchDialog';
35
+ export { default as MultipleSelectionDialog } from './components/MultipleSelectionDialog';
36
+
37
+ export {
38
+ EQUIPMENT_TYPE,
39
+ getEquipmentsInfosForSearchBar,
40
+ equipmentStyles,
41
+ } from './utils/EquipmentType';
42
+
43
+ export {
44
+ initializeAuthenticationDev,
45
+ initializeAuthenticationProd,
46
+ dispatchUser,
47
+ getPreLoginPath,
48
+ } from './utils/AuthService';
49
+
50
+ export { getFileIcon } from './utils/ElementType';
51
+
52
+ export {
53
+ DEFAULT_CELL_PADDING,
54
+ DEFAULT_HEADER_HEIGHT,
55
+ DEFAULT_ROW_HEIGHT,
56
+ } from './components/MuiVirtualizedTable/MuiVirtualizedTable';
57
+
58
+ export {
59
+ DARK_THEME,
60
+ LIGHT_THEME,
61
+ LANG_SYSTEM,
62
+ LANG_ENGLISH,
63
+ LANG_FRENCH,
64
+ } from './components/TopBar/TopBar';
18
65
  export {
19
- DirectoryItemsInputProps,
20
- DirectoryItemsInput,
21
- } from './components/react-hook-form/directory-items-input';
66
+ USER,
67
+ setLoggedUser,
68
+ SIGNIN_CALLBACK_ERROR,
69
+ setSignInCallbackError,
70
+ UNAUTHORIZED_USER_INFO,
71
+ LOGOUT_ERROR,
72
+ USER_VALIDATION_ERROR,
73
+ RESET_AUTHENTICATION_ROUTER_ERROR,
74
+ SHOW_AUTH_INFO_LOGIN,
75
+ } from './utils/actions';
76
+ export { default as report_viewer_en } from './components/translations/report-viewer-en';
77
+ export { default as report_viewer_fr } from './components/translations/report-viewer-fr';
78
+ export { default as login_en } from './components/translations/login-en';
79
+ export { default as login_fr } from './components/translations/login-fr';
80
+ export { default as top_bar_en } from './components/translations/top-bar-en';
81
+ export { default as top_bar_fr } from './components/translations/top-bar-fr';
82
+ export { default as table_en } from './components/translations/table-en';
83
+ export { default as table_fr } from './components/translations/table-fr';
84
+ export { default as treeview_finder_en } from './components/translations/treeview-finder-en';
85
+ export { default as treeview_finder_fr } from './components/translations/treeview-finder-fr';
86
+ export { default as element_search_en } from './components/translations/element-search-en';
87
+ export { default as element_search_fr } from './components/translations/element-search-fr';
88
+ export { default as equipment_search_en } from './components/translations/equipment-search-en';
89
+ export { default as equipment_search_fr } from './components/translations/equipment-search-fr';
90
+ export { default as card_error_boundary_en } from './components/translations/card-error-boundary-en';
91
+ export { default as card_error_boundary_fr } from './components/translations/card-error-boundary-fr';
92
+ export { default as flat_parameters_en } from './components/translations/flat-parameters-en';
93
+ export { default as flat_parameters_fr } from './components/translations/flat-parameters-fr';
94
+ export { default as multiple_selection_dialog_en } from './components/translations/multiple-selection-dialog-en';
95
+ export { default as multiple_selection_dialog_fr } from './components/translations/multiple-selection-dialog-fr';
96
+ export { default as common_button_en } from './components/translations/common-button-en';
97
+ export { default as common_button_fr } from './components/translations/common-button-fr';
98
+ export { default as directory_items_input_en } from './components/translations/directory-items-input-en';
99
+ export { default as directory_items_input_fr } from './components/translations/directory-items-input-fr';
100
+
101
+ export { TagRenderer } from './components/ElementSearchDialog';
102
+ export { EquipmentItem } from './components/ElementSearchDialog/equipment-item';
103
+ export { useIntlRef } from './hooks/useIntlRef';
104
+ export { default as SliderInput } from './components/react-hook-form/slider-input';
105
+ export { default as TextFieldWithAdornment } from './components/react-hook-form/utils/text-field-with-adornment';
22
106
  export {
23
- DirectoryItemSelectorProps,
24
- DirectoryItemSelector,
25
- } from './components/DirectoryItemSelector/directory-item-selector';
107
+ genHelperPreviousValue,
108
+ genHelperError,
109
+ identity,
110
+ isFieldRequired,
111
+ } from './components/react-hook-form/utils/functions';
112
+ export { default as DirectoryItemsInput } from './components/react-hook-form/directory-items-input';
113
+ export { default as DirectoryItemSelector } from './components/DirectoryItemSelector/directory-item-selector';
114
+ export { RawReadOnlyInput } from './components/react-hook-form/raw-read-only-input';
115
+ export { UserManagerMock } from './utils/UserManagerMock';
26
116
 
117
+ export {
118
+ ExpandingTextFieldProps,
119
+ ExpandingTextField,
120
+ } from './components/react-hook-form/expanding-text-field';
27
121
  /**
28
122
  * Section to export manual type declarations of .js and .jsx files
29
123
  */
30
124
 
125
+ export const CardErrorBoundary: FunctionComponent;
126
+
31
127
  export const TopBar: FunctionComponent;
32
128
 
33
129
  export function logout(
@@ -35,8 +131,6 @@ export function logout(
35
131
  userManagerInstance: any
36
132
  ): Promise<any | undefined>;
37
133
 
38
- export const DARK_THEME: string, LIGHT_THEME: string;
39
-
40
134
  interface SnackInputs {
41
135
  messageTxt?: string;
42
136
  messageId?: string;
@@ -111,7 +205,7 @@ type TextFieldWithAdornmentProps = TextFieldProps & {
111
205
  handleClearValue?: () => void;
112
206
  };
113
207
 
114
- interface TextInputProps {
208
+ export interface TextInputProps {
115
209
  name: string;
116
210
  label?: string;
117
211
  labelValues?: any; // it's for values from https://formatjs.io/docs/react-intl/components/#formattedmessage