@gridsuite/commons-ui 0.58.0 → 0.59.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 (190) hide show
  1. package/dist/chunks/{criteria-based-filter-edition-dialog.CbhgOSRk.js → criteria-based-filter-edition-dialog.DcXcQOoT.js} +21 -65
  2. package/dist/components/AuthenticationRouter/AuthenticationRouter.d.ts +28 -9
  3. package/dist/components/AuthenticationRouter/AuthenticationRouter.js +1 -1
  4. package/dist/components/AuthenticationRouter/index.d.ts +6 -0
  5. package/dist/components/CardErrorBoundary/card-error-boundary.d.ts +27 -13
  6. package/dist/components/CardErrorBoundary/card-error-boundary.js +7 -6
  7. package/dist/components/CardErrorBoundary/index.d.ts +6 -0
  8. package/dist/components/CustomAGGrid/custom-aggrid.d.ts +11 -0
  9. package/dist/components/CustomAGGrid/custom-aggrid.js +73 -0
  10. package/dist/components/CustomAGGrid/custom-aggrid.style.d.ts +20 -0
  11. package/dist/components/CustomAGGrid/custom-aggrid.style.js +47 -0
  12. package/dist/components/DirectoryItemSelector/directory-item-selector.d.ts +0 -4
  13. package/dist/components/DirectoryItemSelector/directory-item-selector.js +13 -26
  14. package/dist/components/ElementSearchDialog/equipment-item.d.ts +25 -16
  15. package/dist/components/ElementSearchDialog/equipment-item.js +5 -5
  16. package/dist/components/ElementSearchDialog/index.d.ts +6 -0
  17. package/dist/components/ElementSearchDialog/tag-renderer.d.ts +20 -10
  18. package/dist/components/ElementSearchDialog/tag-renderer.js +6 -11
  19. package/dist/components/FlatParameters/FlatParameters.d.ts +29 -9
  20. package/dist/components/FlatParameters/FlatParameters.js +3 -3
  21. package/dist/components/FlatParameters/index.d.ts +6 -0
  22. package/dist/components/Login/Login.d.ts +11 -4
  23. package/dist/components/Login/Logout.d.ts +11 -4
  24. package/dist/components/Login/index.d.ts +6 -0
  25. package/dist/components/MuiVirtualizedTable/ColumnHeader.d.ts +25 -2
  26. package/dist/components/MuiVirtualizedTable/ColumnHeader.js +68 -59
  27. package/dist/components/MuiVirtualizedTable/KeyedColumnsRowIndexer.d.ts +72 -61
  28. package/dist/components/MuiVirtualizedTable/KeyedColumnsRowIndexer.js +69 -83
  29. package/dist/components/MuiVirtualizedTable/MuiVirtualizedTable.d.ts +93 -113
  30. package/dist/components/MuiVirtualizedTable/MuiVirtualizedTable.js +84 -106
  31. package/dist/components/MuiVirtualizedTable/index.d.ts +7 -1
  32. package/dist/components/MultipleSelectionDialog/MultipleSelectionDialog.d.ts +16 -9
  33. package/dist/components/MultipleSelectionDialog/MultipleSelectionDialog.js +1 -1
  34. package/dist/components/MultipleSelectionDialog/index.d.ts +6 -0
  35. package/dist/components/OverflowableText/index.d.ts +6 -0
  36. package/dist/components/OverflowableText/overflowable-text.d.ts +11 -1
  37. package/dist/components/OverflowableText/overflowable-text.js +1 -18
  38. package/dist/components/ReportViewer/filter-button.d.ts +11 -1
  39. package/dist/components/ReportViewer/filter-button.js +5 -2
  40. package/dist/components/ReportViewer/index.d.ts +6 -0
  41. package/dist/components/ReportViewer/log-report-item.d.ts +14 -64
  42. package/dist/components/ReportViewer/log-report-item.js +13 -47
  43. package/dist/components/ReportViewer/log-report.d.ts +16 -17
  44. package/dist/components/ReportViewer/log-report.js +2 -1
  45. package/dist/components/ReportViewer/log-severity.d.ts +13 -0
  46. package/dist/components/ReportViewer/log-severity.js +35 -0
  47. package/dist/components/ReportViewer/log-table.d.ts +9 -6
  48. package/dist/components/ReportViewer/log-table.js +6 -4
  49. package/dist/components/ReportViewer/multi-select-list.d.ts +17 -1
  50. package/dist/components/ReportViewer/report-item.d.ts +12 -12
  51. package/dist/components/ReportViewer/report-item.js +0 -7
  52. package/dist/components/ReportViewer/report-tree-view-context.d.ts +11 -1
  53. package/dist/components/ReportViewer/report-viewer.d.ts +7 -4
  54. package/dist/components/ReportViewer/report-viewer.js +8 -6
  55. package/dist/components/ReportViewer/report.type.d.ts +22 -0
  56. package/dist/components/ReportViewer/report.type.js +1 -0
  57. package/dist/components/ReportViewerDialog/index.d.ts +6 -0
  58. package/dist/components/ReportViewerDialog/report-viewer-dialog.d.ts +9 -1
  59. package/dist/components/SignInCallbackHandler/SignInCallbackHandler.d.ts +7 -4
  60. package/dist/components/SignInCallbackHandler/SignInCallbackHandler.js +4 -1
  61. package/dist/components/SignInCallbackHandler/index.d.ts +6 -0
  62. package/dist/components/SilentRenewCallbackHandler/SilentRenewCallbackHandler.d.ts +7 -4
  63. package/dist/components/SilentRenewCallbackHandler/index.d.ts +6 -0
  64. package/dist/components/SnackbarProvider/SnackbarProvider.d.ts +3 -1
  65. package/dist/components/SnackbarProvider/SnackbarProvider.js +9 -7
  66. package/dist/components/SnackbarProvider/index.d.ts +6 -0
  67. package/dist/components/TopBar/AboutDialog.d.ts +30 -23
  68. package/dist/components/TopBar/AboutDialog.js +4 -22
  69. package/dist/components/TopBar/GridLogo.d.ts +13 -32
  70. package/dist/components/TopBar/GridLogo.js +12 -15
  71. package/dist/components/TopBar/TopBar.d.ts +52 -51
  72. package/dist/components/TopBar/TopBar.js +389 -380
  73. package/dist/components/TopBar/TopBar.test.d.ts +6 -0
  74. package/dist/components/TopBar/index.d.ts +6 -0
  75. package/dist/components/dialogs/modify-element-selection.d.ts +1 -1
  76. package/dist/components/dialogs/modify-element-selection.js +5 -14
  77. package/dist/components/filter/criteria-based/criteria-based-filter-edition-dialog.d.ts +1 -1
  78. package/dist/components/filter/criteria-based/criteria-based-filter-edition-dialog.js +1 -1
  79. package/dist/components/filter/criteria-based/filter-free-properties.d.ts +1 -1
  80. package/dist/components/filter/criteria-based/filter-property.d.ts +1 -1
  81. package/dist/components/filter/expert/expert-filter-constants.d.ts +22 -1
  82. package/dist/components/filter/expert/expert-filter-constants.js +39 -10
  83. package/dist/components/filter/expert/expert-filter-edition-dialog.d.ts +0 -6
  84. package/dist/components/filter/expert/expert-filter-edition-dialog.js +1 -2
  85. package/dist/components/filter/expert/expert-filter-form.js +1 -1
  86. package/dist/components/filter/expert/expert-filter.type.d.ts +4 -1
  87. package/dist/components/filter/expert/expert-filter.type.js +3 -0
  88. package/dist/components/filter/explicit-naming/explicit-naming-filter-edition-dialog.js +1 -1
  89. package/dist/components/filter/explicit-naming/explicit-naming-filter-form.js +1 -1
  90. package/dist/components/filter/filter-creation-dialog.d.ts +0 -7
  91. package/dist/components/filter/filter-creation-dialog.js +1 -2
  92. package/dist/components/filter/filter-form.js +1 -1
  93. package/dist/components/filter/utils/filter-form-utils.d.ts +3 -2
  94. package/dist/components/filter/utils/filter-form-utils.js +42 -28
  95. package/dist/components/inputs/react-hook-form/ag-grid-table/bottom-right-buttons.js +1 -1
  96. package/dist/components/inputs/react-hook-form/ag-grid-table/csv-uploader/csv-uploader.js +6 -13
  97. package/dist/components/inputs/react-hook-form/ag-grid-table/custom-ag-grid-table.js +1 -1
  98. package/dist/components/inputs/react-hook-form/autocomplete-inputs/autocomplete-input.d.ts +1 -1
  99. package/dist/components/inputs/react-hook-form/booleans/boolean-input.d.ts +9 -15
  100. package/dist/components/inputs/react-hook-form/booleans/boolean-input.js +0 -7
  101. package/dist/components/inputs/react-hook-form/booleans/checkbox-input.d.ts +8 -13
  102. package/dist/components/inputs/react-hook-form/booleans/checkbox-input.js +0 -6
  103. package/dist/components/inputs/react-hook-form/booleans/switch-input.d.ts +8 -13
  104. package/dist/components/inputs/react-hook-form/booleans/switch-input.js +0 -6
  105. package/dist/components/inputs/react-hook-form/directory-items-input.d.ts +0 -2
  106. package/dist/components/inputs/react-hook-form/directory-items-input.js +10 -14
  107. package/dist/components/inputs/react-hook-form/error-management/mid-form-error.d.ts +5 -3
  108. package/dist/components/inputs/react-hook-form/numbers/integer-input.d.ts +3 -20
  109. package/dist/components/inputs/react-hook-form/numbers/integer-input.js +1 -4
  110. package/dist/components/inputs/react-hook-form/range-input.d.ts +1 -1
  111. package/dist/components/inputs/react-hook-form/select-inputs/countries-input.js +12 -1
  112. package/dist/components/inputs/react-hook-form/select-inputs/select-input.d.ts +1 -1
  113. package/dist/components/inputs/react-hook-form/slider-input.d.ts +7 -20
  114. package/dist/components/inputs/react-hook-form/slider-input.js +4 -12
  115. package/dist/components/inputs/react-hook-form/text-input.d.ts +1 -1
  116. package/dist/components/inputs/react-hook-form/unique-name-input.d.ts +1 -1
  117. package/dist/components/inputs/react-hook-form/utils/text-field-with-adornment.d.ts +1 -1
  118. package/dist/components/inputs/react-query-builder/custom-react-query-builder.js +1 -1
  119. package/dist/components/inputs/react-query-builder/element-value-editor.js +8 -14
  120. package/dist/components/inputs/react-query-builder/remove-button.js +1 -1
  121. package/dist/components/inputs/react-query-builder/value-editor.js +1 -1
  122. package/dist/components/translations/card-error-boundary-en.d.ts +1 -1
  123. package/dist/components/translations/card-error-boundary-fr.d.ts +1 -1
  124. package/dist/components/translations/common-button-en.d.ts +10 -4
  125. package/dist/components/translations/common-button-fr.d.ts +10 -4
  126. package/dist/components/translations/directory-items-input-en.d.ts +1 -1
  127. package/dist/components/translations/directory-items-input-fr.d.ts +1 -1
  128. package/dist/components/translations/element-search-en.d.ts +1 -1
  129. package/dist/components/translations/element-search-fr.d.ts +1 -1
  130. package/dist/components/translations/equipment-search-en.d.ts +1 -1
  131. package/dist/components/translations/equipment-search-fr.d.ts +1 -1
  132. package/dist/components/translations/filter-en.d.ts +27 -21
  133. package/dist/components/translations/filter-en.js +2 -1
  134. package/dist/components/translations/filter-expert-en.d.ts +73 -0
  135. package/dist/components/translations/filter-expert-en.js +69 -0
  136. package/dist/components/translations/filter-expert-fr.d.ts +73 -0
  137. package/dist/components/translations/filter-expert-fr.js +69 -0
  138. package/dist/components/translations/filter-fr.d.ts +27 -21
  139. package/dist/components/translations/filter-fr.js +2 -1
  140. package/dist/components/translations/flat-parameters-en.d.ts +1 -1
  141. package/dist/components/translations/flat-parameters-fr.d.ts +1 -1
  142. package/dist/components/translations/inputs-en.d.ts +1 -1
  143. package/dist/components/translations/inputs-fr.d.ts +1 -1
  144. package/dist/components/translations/login-en.d.ts +1 -1
  145. package/dist/components/translations/login-fr.d.ts +1 -1
  146. package/dist/components/translations/multiple-selection-dialog-en.d.ts +1 -1
  147. package/dist/components/translations/multiple-selection-dialog-fr.d.ts +1 -1
  148. package/dist/components/translations/report-viewer-en.d.ts +1 -1
  149. package/dist/components/translations/report-viewer-fr.d.ts +1 -1
  150. package/dist/components/translations/table-en.d.ts +1 -1
  151. package/dist/components/translations/table-fr.d.ts +1 -1
  152. package/dist/components/translations/top-bar-en.d.ts +1 -1
  153. package/dist/components/translations/top-bar-fr.d.ts +1 -1
  154. package/dist/components/translations/treeview-finder-en.d.ts +1 -1
  155. package/dist/components/translations/treeview-finder-fr.d.ts +1 -1
  156. package/dist/hooks/localized-countries-hook.d.ts +10 -4
  157. package/dist/hooks/localized-countries-hook.js +1 -1
  158. package/dist/hooks/predefined-properties-hook.d.ts +1 -15
  159. package/dist/hooks/predefined-properties-hook.js +8 -16
  160. package/dist/index.d.ts +65 -217
  161. package/dist/index.js +104 -77
  162. package/dist/module-mui.d.js +1 -0
  163. package/dist/redux/actions.d.ts +33 -29
  164. package/dist/services/apps-metadata.d.ts +32 -0
  165. package/dist/services/apps-metadata.js +26 -0
  166. package/dist/services/directory.d.ts +6 -0
  167. package/dist/services/directory.js +42 -0
  168. package/dist/services/explore.d.ts +2 -0
  169. package/dist/services/explore.js +29 -1
  170. package/dist/services/index.d.ts +16 -0
  171. package/dist/services/index.js +20 -0
  172. package/dist/services/utils.d.ts +1 -0
  173. package/dist/services/utils.js +5 -1
  174. package/dist/utils/AuthService.d.ts +20 -9
  175. package/dist/utils/AuthService.js +29 -13
  176. package/dist/utils/ElementIcon.d.ts +4 -1
  177. package/dist/utils/EquipmentType.d.ts +13 -9
  178. package/dist/utils/EquipmentType.js +9 -9
  179. package/dist/utils/UserManagerMock.d.ts +14 -14
  180. package/dist/utils/UserManagerMock.js +9 -15
  181. package/dist/utils/algos.d.ts +1 -1
  182. package/dist/utils/equipment-types-for-predefined-properties-mapper.d.ts +1 -1
  183. package/dist/utils/functions.d.ts +0 -1
  184. package/dist/utils/functions.js +1 -3
  185. package/dist/utils/styles.d.ts +5 -3
  186. package/dist/utils/styles.js +4 -1
  187. package/dist/utils/types.d.ts +13 -3
  188. package/package.json +2 -1
  189. package/dist/components/filter/filter-context.d.ts +0 -13
  190. package/dist/components/filter/filter-context.js +0 -11
@@ -4,7 +4,6 @@ import { useTheme, Dialog, useMediaQuery, DialogTitle, Collapse, Alert, Box, Fad
4
4
  import { LoadingButton } from "@mui/lab";
5
5
  import { Refresh, ExpandMore, Gavel, Apps, WidgetsOutlined, DnsOutlined, QuestionMark } from "@mui/icons-material";
6
6
  import { FormattedMessage } from "react-intl";
7
- import PropTypes from "prop-types";
8
7
  import { LogoText } from "./GridLogo.js";
9
8
  const styles = {
10
9
  general: {
@@ -42,7 +41,7 @@ function getGlobalVersion(fnPromise, type, setData, setLoader) {
42
41
  if (setLoader) {
43
42
  setLoader(true);
44
43
  }
45
- resolve();
44
+ resolve(null);
46
45
  }).then(() => fnPromise()).then(
47
46
  (value) => {
48
47
  console.debug(type, "global version is", value);
@@ -72,7 +71,7 @@ const moduleTypeSort = {
72
71
  other: 20
73
72
  };
74
73
  function compareModules(c1, c2) {
75
- return [moduleTypeSort[c1.type] || 100] - [moduleTypeSort[c2.type] || 100] || (c1.name || "").localeCompare(c2.name || "");
74
+ return (moduleTypeSort[c1.type] || 100) - (moduleTypeSort[c2.type] || 100) || (c1.name || "").localeCompare(c2.name || "");
76
75
  }
77
76
  const AboutDialog = ({
78
77
  open,
@@ -220,7 +219,7 @@ const AboutDialog = ({
220
219
  {
221
220
  component: "span",
222
221
  sx: styles.versionField(
223
- !loadingGlobalVersion && actualGlobalVersion
222
+ !loadingGlobalVersion && !!actualGlobalVersion
224
223
  ),
225
224
  children: actualGlobalVersion || "unknown"
226
225
  }
@@ -311,16 +310,6 @@ const AboutDialog = ({
311
310
  }
312
311
  );
313
312
  };
314
- AboutDialog.propTypes = {
315
- open: PropTypes.bool.isRequired,
316
- onClose: PropTypes.func,
317
- appName: PropTypes.string.isRequired,
318
- appVersion: PropTypes.string,
319
- appGitTag: PropTypes.string,
320
- appLicense: PropTypes.string,
321
- globalVersionPromise: PropTypes.func,
322
- additionalModulesPromise: PropTypes.func
323
- };
324
313
  const moduleStyles = {
325
314
  icons: {
326
315
  flexGrow: 0,
@@ -388,7 +377,7 @@ function tooltipTypeLabel(type) {
388
377
  return "about-dialog/module-tooltip-other";
389
378
  }
390
379
  }
391
- const Module = ({ type, name, version, gitTag, license }) => {
380
+ const Module = ({ type, name, version, gitTag }) => {
392
381
  return /* @__PURE__ */ jsx(
393
382
  Grid,
394
383
  {
@@ -455,13 +444,6 @@ const Module = ({ type, name, version, gitTag, license }) => {
455
444
  }
456
445
  );
457
446
  };
458
- Module.propTypes = {
459
- type: PropTypes.string,
460
- name: PropTypes.string,
461
- version: PropTypes.string,
462
- gitTag: PropTypes.string,
463
- license: PropTypes.string
464
- };
465
447
  export {
466
448
  AboutDialog as default
467
449
  };
@@ -1,34 +1,15 @@
1
- import { default as PropTypes } from 'prop-types';
2
- export default GridLogo;
3
- export function LogoText({ appName, appColor, style, onClick }: {
4
- appName: any;
5
- appColor: any;
6
- style: any;
7
- onClick: any;
8
- }): import("react/jsx-runtime").JSX.Element;
9
- export namespace LogoText {
10
- namespace propTypes {
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>;
15
- }
1
+ import { ReactNode } from 'react';
2
+ import { SxProps } from '@mui/material';
3
+
4
+ export interface GridLogoProps extends Omit<LogoTextProps, 'style'> {
5
+ appLogo: ReactNode;
16
6
  }
17
- declare function GridLogo({ appLogo, appName, appColor, onClick }: {
18
- appLogo: any;
19
- appName: any;
20
- appColor: any;
21
- onClick: any;
22
- }): import("react/jsx-runtime").JSX.Element;
23
- declare namespace GridLogo {
24
- export namespace propTypes_1 {
25
- export let appLogo: PropTypes.Requireable<PropTypes.ReactElementLike>;
26
- let appName_1: PropTypes.Validator<string>;
27
- export { appName_1 as appName };
28
- let appColor_1: PropTypes.Validator<string>;
29
- export { appColor_1 as appColor };
30
- let onClick_1: PropTypes.Requireable<(...args: any[]) => any>;
31
- export { onClick_1 as onClick };
32
- }
33
- export { propTypes_1 as propTypes };
7
+ declare const GridLogo: ({ appLogo, appName, appColor, onClick, }: Partial<GridLogoProps>) => import("react/jsx-runtime").JSX.Element;
8
+ export default GridLogo;
9
+ export interface LogoTextProps {
10
+ appName: string;
11
+ appColor: string;
12
+ style: SxProps;
13
+ onClick: () => void;
34
14
  }
15
+ export declare const LogoText: ({ appName, appColor, style, onClick, }: Partial<LogoTextProps>) => import("react/jsx-runtime").JSX.Element;
@@ -2,7 +2,6 @@ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { Box, Typography } from "@mui/material";
3
3
  import { BrokenImage } from "@mui/icons-material";
4
4
  import { mergeSx } from "../../utils/styles.js";
5
- import PropTypes from "prop-types";
6
5
  const styles = {
7
6
  logo: {
8
7
  flexShrink: 0,
@@ -18,7 +17,12 @@ const styles = {
18
17
  cursor: "pointer"
19
18
  }
20
19
  };
21
- const GridLogo = ({ appLogo, appName, appColor, onClick }) => {
20
+ const GridLogo = ({
21
+ appLogo,
22
+ appName,
23
+ appColor,
24
+ onClick
25
+ }) => {
22
26
  return /* @__PURE__ */ jsxs(Fragment, { children: [
23
27
  /* @__PURE__ */ jsx(
24
28
  Box,
@@ -39,13 +43,12 @@ const GridLogo = ({ appLogo, appName, appColor, onClick }) => {
39
43
  )
40
44
  ] });
41
45
  };
42
- GridLogo.propTypes = {
43
- appLogo: PropTypes.element,
44
- appName: PropTypes.string.isRequired,
45
- appColor: PropTypes.string.isRequired,
46
- onClick: PropTypes.func
47
- };
48
- const LogoText = ({ appName, appColor, style, onClick }) => {
46
+ const LogoText = ({
47
+ appName,
48
+ appColor,
49
+ style,
50
+ onClick
51
+ }) => {
49
52
  return /* @__PURE__ */ jsxs(
50
53
  Typography,
51
54
  {
@@ -59,12 +62,6 @@ const LogoText = ({ appName, appColor, style, onClick }) => {
59
62
  }
60
63
  );
61
64
  };
62
- LogoText.propTypes = {
63
- appName: PropTypes.string.isRequired,
64
- appColor: PropTypes.string.isRequired,
65
- style: PropTypes.oneOfType([PropTypes.object, PropTypes.func]),
66
- onClick: PropTypes.func
67
- };
68
65
  export {
69
66
  LogoText,
70
67
  GridLogo as default
@@ -1,53 +1,54 @@
1
+ import { CommonMetadata } from '../../services';
2
+ import { User } from 'oidc-client';
3
+ import { LogoutProps } from '../Login/Logout';
4
+ import { AboutDialogProps } from './AboutDialog';
5
+ import { GridLogoProps } from './GridLogo';
1
6
  import { default as PropTypes } from 'prop-types';
2
- export const DARK_THEME: "Dark";
3
- export const LIGHT_THEME: "Light";
4
- export const LANG_SYSTEM: "sys";
5
- export const LANG_ENGLISH: "en";
6
- export const LANG_FRENCH: "fr";
7
+ import { PropsWithChildren } from 'react';
8
+
9
+ export declare const DARK_THEME = "Dark";
10
+ export declare const LIGHT_THEME = "Light";
11
+ export declare const LANG_SYSTEM = "sys";
12
+ export declare const LANG_ENGLISH = "en";
13
+ export declare const LANG_FRENCH = "fr";
14
+ export type GsLang = typeof LANG_ENGLISH | typeof LANG_FRENCH | typeof LANG_SYSTEM;
15
+ export type GsTheme = typeof LIGHT_THEME | typeof DARK_THEME;
16
+ export type TopBarProps = Omit<GridLogoProps, 'onClick'> & Omit<LogoutProps, 'disabled'> & Omit<AboutDialogProps, 'open' | 'onClose'> & {
17
+ onParametersClick?: () => void;
18
+ onLogoClick: GridLogoProps['onClick'];
19
+ user: User;
20
+ onAboutClick?: () => void;
21
+ appsAndUrls: CommonMetadata[];
22
+ onThemeClick?: (theme: GsTheme) => void;
23
+ theme?: GsTheme;
24
+ onEquipmentLabellingClick?: (toggle: boolean) => void;
25
+ equipmentLabelling?: boolean;
26
+ onLanguageClick: (value: GsLang) => void;
27
+ language: GsLang;
28
+ };
29
+ declare const TopBar: {
30
+ ({ appName, appColor, appLogo, appVersion, appLicense, onParametersClick, onLogoutClick, onLogoClick, user, children, appsAndUrls, onAboutClick, globalVersionPromise, additionalModulesPromise, onThemeClick, theme, onEquipmentLabellingClick, equipmentLabelling, onLanguageClick, language, }: PropsWithChildren<TopBarProps>): import("react/jsx-runtime").JSX.Element;
31
+ propTypes: {
32
+ onParametersClick: PropTypes.Requireable<(...args: any[]) => any>;
33
+ onLogoutClick: PropTypes.Requireable<(...args: any[]) => any>;
34
+ onLogoClick: PropTypes.Requireable<(...args: any[]) => any>;
35
+ appName: PropTypes.Requireable<string>;
36
+ appColor: PropTypes.Requireable<string>;
37
+ appLogo: PropTypes.Requireable<object>;
38
+ appVersion: PropTypes.Requireable<string>;
39
+ appLicense: PropTypes.Requireable<string>;
40
+ user: PropTypes.Requireable<object>;
41
+ children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
42
+ appsAndUrls: PropTypes.Requireable<any[]>;
43
+ onThemeClick: PropTypes.Requireable<(...args: any[]) => any>;
44
+ theme: PropTypes.Requireable<string>;
45
+ onAboutClick: PropTypes.Requireable<(...args: any[]) => any>;
46
+ globalVersionPromise: PropTypes.Requireable<(...args: any[]) => any>;
47
+ additionalModulesPromise: PropTypes.Requireable<(...args: any[]) => any>;
48
+ onEquipmentLabellingClick: PropTypes.Requireable<(...args: any[]) => any>;
49
+ equipmentLabelling: PropTypes.Requireable<boolean>;
50
+ onLanguageClick: PropTypes.Validator<(...args: any[]) => any>;
51
+ language: PropTypes.Validator<string>;
52
+ };
53
+ };
7
54
  export default TopBar;
8
- declare function TopBar({ appName, appColor, appLogo, appVersion, appLicense, onParametersClick, onLogoutClick, onLogoClick, user, children, appsAndUrls, onAboutClick, globalVersionPromise, additionalModulesPromise, onThemeClick, theme, onEquipmentLabellingClick, equipmentLabelling, onLanguageClick, language, }: {
9
- appName: any;
10
- appColor: any;
11
- appLogo: any;
12
- appVersion: any;
13
- appLicense: any;
14
- onParametersClick: any;
15
- onLogoutClick: any;
16
- onLogoClick: any;
17
- user: any;
18
- children: any;
19
- appsAndUrls: any;
20
- onAboutClick: any;
21
- globalVersionPromise: any;
22
- additionalModulesPromise: any;
23
- onThemeClick: any;
24
- theme: any;
25
- onEquipmentLabellingClick: any;
26
- equipmentLabelling: any;
27
- onLanguageClick: any;
28
- language: any;
29
- }): import("react/jsx-runtime").JSX.Element;
30
- declare namespace TopBar {
31
- namespace propTypes {
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>;
52
- }
53
- }