@gridsuite/commons-ui 0.58.0 → 0.59.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.
- package/dist/chunks/{criteria-based-filter-edition-dialog.CbhgOSRk.js → criteria-based-filter-edition-dialog.p2pUWzxc.js} +20 -65
- package/dist/components/AuthenticationRouter/AuthenticationRouter.d.ts +28 -9
- package/dist/components/AuthenticationRouter/AuthenticationRouter.js +1 -1
- package/dist/components/AuthenticationRouter/index.d.ts +6 -0
- package/dist/components/CardErrorBoundary/card-error-boundary.d.ts +27 -13
- package/dist/components/CardErrorBoundary/card-error-boundary.js +7 -6
- package/dist/components/CardErrorBoundary/index.d.ts +6 -0
- package/dist/components/DirectoryItemSelector/directory-item-selector.d.ts +0 -4
- package/dist/components/DirectoryItemSelector/directory-item-selector.js +13 -26
- package/dist/components/ElementSearchDialog/equipment-item.d.ts +25 -16
- package/dist/components/ElementSearchDialog/equipment-item.js +5 -5
- package/dist/components/ElementSearchDialog/index.d.ts +6 -0
- package/dist/components/ElementSearchDialog/tag-renderer.d.ts +20 -10
- package/dist/components/ElementSearchDialog/tag-renderer.js +6 -11
- package/dist/components/FlatParameters/FlatParameters.d.ts +29 -9
- package/dist/components/FlatParameters/FlatParameters.js +3 -3
- package/dist/components/FlatParameters/index.d.ts +6 -0
- package/dist/components/Login/Login.d.ts +11 -4
- package/dist/components/Login/Logout.d.ts +11 -4
- package/dist/components/Login/index.d.ts +6 -0
- package/dist/components/MuiVirtualizedTable/ColumnHeader.d.ts +25 -2
- package/dist/components/MuiVirtualizedTable/ColumnHeader.js +68 -59
- package/dist/components/MuiVirtualizedTable/KeyedColumnsRowIndexer.d.ts +72 -61
- package/dist/components/MuiVirtualizedTable/KeyedColumnsRowIndexer.js +69 -83
- package/dist/components/MuiVirtualizedTable/MuiVirtualizedTable.d.ts +93 -113
- package/dist/components/MuiVirtualizedTable/MuiVirtualizedTable.js +84 -106
- package/dist/components/MuiVirtualizedTable/index.d.ts +7 -1
- package/dist/components/MultipleSelectionDialog/MultipleSelectionDialog.d.ts +16 -9
- package/dist/components/MultipleSelectionDialog/MultipleSelectionDialog.js +1 -1
- package/dist/components/MultipleSelectionDialog/index.d.ts +6 -0
- package/dist/components/OverflowableText/index.d.ts +6 -0
- package/dist/components/OverflowableText/overflowable-text.d.ts +11 -1
- package/dist/components/OverflowableText/overflowable-text.js +1 -18
- package/dist/components/ReportViewer/filter-button.d.ts +11 -1
- package/dist/components/ReportViewer/filter-button.js +5 -2
- package/dist/components/ReportViewer/index.d.ts +6 -0
- package/dist/components/ReportViewer/log-report-item.d.ts +14 -64
- package/dist/components/ReportViewer/log-report-item.js +13 -47
- package/dist/components/ReportViewer/log-report.d.ts +16 -17
- package/dist/components/ReportViewer/log-report.js +2 -1
- package/dist/components/ReportViewer/log-severity.d.ts +13 -0
- package/dist/components/ReportViewer/log-severity.js +35 -0
- package/dist/components/ReportViewer/log-table.d.ts +9 -6
- package/dist/components/ReportViewer/log-table.js +6 -4
- package/dist/components/ReportViewer/multi-select-list.d.ts +17 -1
- package/dist/components/ReportViewer/report-item.d.ts +12 -12
- package/dist/components/ReportViewer/report-item.js +0 -7
- package/dist/components/ReportViewer/report-tree-view-context.d.ts +11 -1
- package/dist/components/ReportViewer/report-viewer.d.ts +7 -4
- package/dist/components/ReportViewer/report-viewer.js +8 -6
- package/dist/components/ReportViewer/report.type.d.ts +22 -0
- package/dist/components/ReportViewer/report.type.js +1 -0
- package/dist/components/ReportViewerDialog/index.d.ts +6 -0
- package/dist/components/ReportViewerDialog/report-viewer-dialog.d.ts +9 -1
- package/dist/components/SignInCallbackHandler/SignInCallbackHandler.d.ts +7 -4
- package/dist/components/SignInCallbackHandler/SignInCallbackHandler.js +4 -1
- package/dist/components/SignInCallbackHandler/index.d.ts +6 -0
- package/dist/components/SilentRenewCallbackHandler/SilentRenewCallbackHandler.d.ts +7 -4
- package/dist/components/SilentRenewCallbackHandler/index.d.ts +6 -0
- package/dist/components/SnackbarProvider/SnackbarProvider.d.ts +3 -1
- package/dist/components/SnackbarProvider/SnackbarProvider.js +9 -7
- package/dist/components/SnackbarProvider/index.d.ts +6 -0
- package/dist/components/TopBar/AboutDialog.d.ts +30 -23
- package/dist/components/TopBar/AboutDialog.js +4 -22
- package/dist/components/TopBar/GridLogo.d.ts +13 -32
- package/dist/components/TopBar/GridLogo.js +12 -15
- package/dist/components/TopBar/TopBar.d.ts +52 -51
- package/dist/components/TopBar/TopBar.js +389 -380
- package/dist/components/TopBar/TopBar.test.d.ts +6 -0
- package/dist/components/TopBar/index.d.ts +6 -0
- package/dist/components/dialogs/modify-element-selection.d.ts +1 -1
- package/dist/components/dialogs/modify-element-selection.js +5 -14
- package/dist/components/filter/criteria-based/criteria-based-filter-edition-dialog.d.ts +1 -1
- package/dist/components/filter/criteria-based/criteria-based-filter-edition-dialog.js +1 -1
- package/dist/components/filter/criteria-based/filter-free-properties.d.ts +1 -1
- package/dist/components/filter/criteria-based/filter-property.d.ts +1 -1
- package/dist/components/filter/expert/expert-filter-constants.d.ts +22 -1
- package/dist/components/filter/expert/expert-filter-constants.js +39 -10
- package/dist/components/filter/expert/expert-filter-edition-dialog.d.ts +0 -6
- package/dist/components/filter/expert/expert-filter-edition-dialog.js +1 -2
- package/dist/components/filter/expert/expert-filter-form.js +1 -1
- package/dist/components/filter/expert/expert-filter.type.d.ts +4 -1
- package/dist/components/filter/expert/expert-filter.type.js +3 -0
- package/dist/components/filter/explicit-naming/explicit-naming-filter-edition-dialog.js +1 -1
- package/dist/components/filter/explicit-naming/explicit-naming-filter-form.js +1 -1
- package/dist/components/filter/filter-creation-dialog.d.ts +0 -7
- package/dist/components/filter/filter-creation-dialog.js +1 -2
- package/dist/components/filter/filter-form.js +1 -1
- package/dist/components/filter/utils/filter-form-utils.js +11 -18
- package/dist/components/inputs/react-hook-form/ag-grid-table/bottom-right-buttons.js +1 -1
- package/dist/components/inputs/react-hook-form/ag-grid-table/csv-uploader/csv-uploader.js +5 -13
- package/dist/components/inputs/react-hook-form/ag-grid-table/custom-ag-grid-table.js +1 -1
- package/dist/components/inputs/react-hook-form/autocomplete-inputs/autocomplete-input.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/booleans/boolean-input.d.ts +9 -15
- package/dist/components/inputs/react-hook-form/booleans/boolean-input.js +0 -7
- package/dist/components/inputs/react-hook-form/booleans/checkbox-input.d.ts +8 -13
- package/dist/components/inputs/react-hook-form/booleans/checkbox-input.js +0 -6
- package/dist/components/inputs/react-hook-form/booleans/switch-input.d.ts +8 -13
- package/dist/components/inputs/react-hook-form/booleans/switch-input.js +0 -6
- package/dist/components/inputs/react-hook-form/directory-items-input.d.ts +0 -2
- package/dist/components/inputs/react-hook-form/directory-items-input.js +10 -14
- package/dist/components/inputs/react-hook-form/error-management/mid-form-error.d.ts +5 -3
- package/dist/components/inputs/react-hook-form/numbers/integer-input.d.ts +3 -20
- package/dist/components/inputs/react-hook-form/numbers/integer-input.js +1 -4
- package/dist/components/inputs/react-hook-form/range-input.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/select-inputs/countries-input.js +12 -1
- package/dist/components/inputs/react-hook-form/select-inputs/select-input.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/slider-input.d.ts +7 -20
- package/dist/components/inputs/react-hook-form/slider-input.js +4 -12
- package/dist/components/inputs/react-hook-form/text-input.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/unique-name-input.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/utils/text-field-with-adornment.d.ts +1 -1
- package/dist/components/inputs/react-query-builder/custom-react-query-builder.js +1 -1
- package/dist/components/inputs/react-query-builder/element-value-editor.js +7 -14
- package/dist/components/inputs/react-query-builder/remove-button.js +1 -1
- package/dist/components/inputs/react-query-builder/value-editor.js +1 -1
- package/dist/components/translations/card-error-boundary-en.d.ts +1 -1
- package/dist/components/translations/card-error-boundary-fr.d.ts +1 -1
- package/dist/components/translations/common-button-en.d.ts +10 -4
- package/dist/components/translations/common-button-fr.d.ts +10 -4
- package/dist/components/translations/directory-items-input-en.d.ts +1 -1
- package/dist/components/translations/directory-items-input-fr.d.ts +1 -1
- package/dist/components/translations/element-search-en.d.ts +1 -1
- package/dist/components/translations/element-search-fr.d.ts +1 -1
- package/dist/components/translations/equipment-search-en.d.ts +1 -1
- package/dist/components/translations/equipment-search-fr.d.ts +1 -1
- package/dist/components/translations/filter-en.d.ts +27 -21
- package/dist/components/translations/filter-en.js +2 -1
- package/dist/components/translations/filter-expert-en.d.ts +73 -0
- package/dist/components/translations/filter-expert-en.js +69 -0
- package/dist/components/translations/filter-expert-fr.d.ts +73 -0
- package/dist/components/translations/filter-expert-fr.js +69 -0
- package/dist/components/translations/filter-fr.d.ts +27 -21
- package/dist/components/translations/filter-fr.js +2 -1
- package/dist/components/translations/flat-parameters-en.d.ts +1 -1
- package/dist/components/translations/flat-parameters-fr.d.ts +1 -1
- package/dist/components/translations/inputs-en.d.ts +1 -1
- package/dist/components/translations/inputs-fr.d.ts +1 -1
- package/dist/components/translations/login-en.d.ts +1 -1
- package/dist/components/translations/login-fr.d.ts +1 -1
- package/dist/components/translations/multiple-selection-dialog-en.d.ts +1 -1
- package/dist/components/translations/multiple-selection-dialog-fr.d.ts +1 -1
- package/dist/components/translations/report-viewer-en.d.ts +1 -1
- package/dist/components/translations/report-viewer-fr.d.ts +1 -1
- package/dist/components/translations/table-en.d.ts +1 -1
- package/dist/components/translations/table-fr.d.ts +1 -1
- package/dist/components/translations/top-bar-en.d.ts +1 -1
- package/dist/components/translations/top-bar-fr.d.ts +1 -1
- package/dist/components/translations/treeview-finder-en.d.ts +1 -1
- package/dist/components/translations/treeview-finder-fr.d.ts +1 -1
- package/dist/hooks/localized-countries-hook.d.ts +10 -4
- package/dist/hooks/localized-countries-hook.js +1 -1
- package/dist/hooks/predefined-properties-hook.d.ts +1 -15
- package/dist/hooks/predefined-properties-hook.js +8 -16
- package/dist/index.d.ts +63 -217
- package/dist/index.js +102 -77
- package/dist/redux/actions.d.ts +33 -29
- package/dist/services/apps-metadata.d.ts +32 -0
- package/dist/services/apps-metadata.js +26 -0
- package/dist/services/directory.d.ts +6 -0
- package/dist/services/directory.js +42 -0
- package/dist/services/explore.d.ts +2 -0
- package/dist/services/explore.js +29 -1
- package/dist/services/index.d.ts +16 -0
- package/dist/services/index.js +20 -0
- package/dist/services/utils.d.ts +1 -0
- package/dist/services/utils.js +5 -1
- package/dist/utils/AuthService.d.ts +20 -9
- package/dist/utils/AuthService.js +29 -13
- package/dist/utils/ElementIcon.d.ts +4 -1
- package/dist/utils/UserManagerMock.d.ts +14 -14
- package/dist/utils/UserManagerMock.js +9 -15
- package/dist/utils/algos.d.ts +1 -1
- package/dist/utils/equipment-types-for-predefined-properties-mapper.d.ts +1 -1
- package/dist/utils/functions.d.ts +0 -1
- package/dist/utils/functions.js +1 -3
- package/dist/utils/styles.d.ts +5 -3
- package/dist/utils/styles.js +4 -1
- package/dist/utils/types.d.ts +13 -3
- package/package.json +2 -1
- package/dist/components/filter/filter-context.d.ts +0 -13
- 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
|
|
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
|
|
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 {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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 = ({
|
|
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
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
onClick
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
export const
|
|
5
|
-
export const
|
|
6
|
-
export const
|
|
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
|
-
}
|