@gridsuite/commons-ui 0.47.0 → 0.49.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/components/AuthenticationRouter/AuthenticationRouter.d.ts +10 -0
- package/dist/components/AuthenticationRouter/index.d.ts +1 -0
- package/dist/components/CardErrorBoundary/card-error-boundary.d.ts +18 -0
- package/dist/components/CardErrorBoundary/index.d.ts +1 -0
- package/dist/components/DirectoryItemSelector/directory-item-selector.d.ts +31 -0
- package/dist/components/DirectoryItemSelector/directory-item-selector.js +270 -0
- package/dist/components/ElementSearchDialog/element-search-dialog.d.ts +16 -0
- package/dist/components/ElementSearchDialog/equipment-item.d.ts +16 -0
- package/dist/components/ElementSearchDialog/index.d.ts +2 -0
- package/dist/components/ElementSearchDialog/tag-renderer.d.ts +11 -0
- package/dist/components/FlatParameters/FlatParameters.d.ts +10 -0
- package/dist/components/FlatParameters/index.d.ts +1 -0
- package/dist/components/Login/Login.d.ts +5 -0
- package/dist/components/Login/Logout.d.ts +5 -0
- package/dist/components/Login/index.d.ts +1 -0
- package/dist/components/MuiVirtualizedTable/ColumnHeader.d.ts +4 -0
- package/dist/components/MuiVirtualizedTable/KeyedColumnsRowIndexer.d.ts +104 -0
- package/dist/components/MuiVirtualizedTable/MuiVirtualizedTable.d.ts +131 -0
- package/dist/components/MuiVirtualizedTable/index.d.ts +2 -0
- package/dist/components/MultipleSelectionDialog/MultipleSelectionDialog.d.ts +10 -0
- package/dist/components/MultipleSelectionDialog/index.d.ts +1 -0
- package/dist/components/OverflowableText/index.d.ts +1 -0
- package/dist/components/OverflowableText/overflowable-text.d.ts +2 -0
- package/dist/components/ReportViewer/filter-button.d.ts +1 -0
- package/dist/components/ReportViewer/index.d.ts +1 -0
- package/dist/components/ReportViewer/log-report-item.d.ts +68 -0
- package/dist/components/ReportViewer/log-report.d.ts +21 -0
- package/dist/components/ReportViewer/log-table.d.ts +8 -0
- package/dist/components/ReportViewer/multi-select-list.d.ts +1 -0
- package/dist/components/ReportViewer/report-item.d.ts +13 -0
- package/dist/components/ReportViewer/report-tree-view-context.d.ts +2 -0
- package/dist/components/ReportViewer/report-viewer.d.ts +4 -0
- package/dist/components/ReportViewerDialog/index.d.ts +1 -0
- package/dist/components/ReportViewerDialog/report-viewer-dialog.d.ts +1 -0
- package/dist/components/SignInCallbackHandler/SignInCallbackHandler.d.ts +5 -0
- package/dist/components/SignInCallbackHandler/index.d.ts +1 -0
- package/dist/components/SilentRenewCallbackHandler/SilentRenewCallbackHandler.d.ts +5 -0
- package/dist/components/SilentRenewCallbackHandler/index.d.ts +1 -0
- package/dist/components/SnackbarProvider/SnackbarProvider.d.ts +3 -0
- package/dist/components/SnackbarProvider/index.d.ts +1 -0
- package/dist/components/TopBar/AboutDialog.d.ts +24 -0
- package/dist/components/TopBar/GridLogo.d.ts +34 -0
- package/dist/components/TopBar/TopBar.d.ts +53 -0
- package/dist/components/TopBar/index.d.ts +3 -0
- package/dist/components/TreeViewFinder/TreeViewFinder.d.ts +59 -0
- package/dist/components/TreeViewFinder/TreeViewFinder.js +2 -1
- package/dist/components/TreeViewFinder/index.d.ts +1 -0
- package/dist/components/react-hook-form/autocomplete-input.d.ts +30 -0
- package/dist/components/react-hook-form/booleans/boolean-input.d.ts +16 -0
- package/dist/components/react-hook-form/booleans/checkbox-input.d.ts +14 -0
- package/dist/components/react-hook-form/booleans/switch-input.d.ts +14 -0
- package/dist/components/react-hook-form/directory-items-input.d.ts +28 -0
- package/dist/components/react-hook-form/directory-items-input.js +185 -0
- package/dist/components/react-hook-form/error-management/error-input.d.ts +5 -0
- package/dist/components/react-hook-form/error-management/field-error-alert.d.ts +4 -0
- package/dist/components/react-hook-form/error-management/mid-form-error.d.ts +4 -0
- package/dist/components/react-hook-form/numbers/float-input.d.ts +18 -0
- package/dist/components/react-hook-form/numbers/integer-input.d.ts +18 -0
- package/dist/components/react-hook-form/numbers/utils.d.ts +2 -0
- package/dist/components/react-hook-form/radio-input.d.ts +18 -0
- package/dist/components/react-hook-form/raw-read-only-input.d.ts +9 -0
- package/dist/components/react-hook-form/raw-read-only-input.js +10 -0
- package/dist/components/react-hook-form/select-input.d.ts +17 -0
- package/dist/components/react-hook-form/slider-input.d.ts +21 -0
- package/dist/components/react-hook-form/text-input.d.ts +33 -0
- package/dist/components/react-hook-form/utils/cancel-button.d.ts +10 -0
- package/dist/components/react-hook-form/utils/field-label.d.ts +6 -0
- package/dist/components/react-hook-form/utils/functions.d.ts +11 -0
- package/dist/components/react-hook-form/utils/functions.js +5 -0
- package/dist/components/react-hook-form/utils/submit-button.d.ts +10 -0
- package/dist/components/react-hook-form/utils/text-field-with-adornment.d.ts +12 -0
- package/dist/components/translations/card-error-boundary-en.d.ts +12 -0
- package/dist/components/translations/card-error-boundary-fr.d.ts +12 -0
- package/dist/components/translations/common-button-en.d.ts +5 -0
- package/dist/components/translations/common-button-fr.d.ts +5 -0
- package/dist/components/translations/directory-items-input-en.d.ts +10 -0
- package/dist/components/translations/directory-items-input-en.js +6 -0
- package/dist/components/translations/directory-items-input-fr.d.ts +10 -0
- package/dist/components/translations/directory-items-input-fr.js +6 -0
- package/dist/components/translations/element-search-en.d.ts +11 -0
- package/dist/components/translations/element-search-fr.d.ts +11 -0
- package/dist/components/translations/equipment-search-en.d.ts +25 -0
- package/dist/components/translations/equipment-search-fr.d.ts +25 -0
- package/dist/components/translations/flat-parameters-en.d.ts +12 -0
- package/dist/components/translations/flat-parameters-fr.d.ts +12 -0
- package/dist/components/translations/login-en.d.ts +18 -0
- package/dist/components/translations/login-en.js +1 -1
- package/dist/components/translations/login-fr.d.ts +18 -0
- package/dist/components/translations/multiple-selection-dialog-en.d.ts +12 -0
- package/dist/components/translations/multiple-selection-dialog-fr.d.ts +12 -0
- package/dist/components/translations/report-viewer-en.d.ts +12 -0
- package/dist/components/translations/report-viewer-fr.d.ts +12 -0
- package/dist/components/translations/table-en.d.ts +10 -0
- package/dist/components/translations/table-fr.d.ts +10 -0
- package/dist/components/translations/top-bar-en.d.ts +31 -0
- package/dist/components/translations/top-bar-fr.d.ts +31 -0
- package/dist/components/translations/treeview-finder-en.d.ts +16 -0
- package/dist/components/translations/treeview-finder-fr.d.ts +16 -0
- package/dist/hooks/useDebounce.d.ts +1 -0
- package/dist/hooks/useSnackMessage.d.ts +5 -0
- package/dist/index.d.ts +10 -1
- package/dist/index.js +44 -34
- package/dist/utils/AuthService.d.ts +9 -0
- package/dist/utils/ElementType.d.ts +13 -0
- package/dist/utils/ElementType.js +6 -2
- package/dist/utils/EquipmentType.d.ts +136 -0
- package/dist/utils/UserManagerMock.d.ts +34 -0
- package/dist/utils/actions.d.ts +50 -0
- package/dist/utils/algos.d.ts +7 -0
- package/dist/utils/styles.d.ts +5 -0
- package/package.json +4 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./MultipleSelectionDialog";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./overflowable-text";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function FilterButton({ selectedItems, setSelectedItems }: Object): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./report-viewer";
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2021, 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
|
+
export default class LogReportItem {
|
|
8
|
+
static SEVERITY: {
|
|
9
|
+
UNKNOWN: {
|
|
10
|
+
name: string;
|
|
11
|
+
level: number;
|
|
12
|
+
colorName: string;
|
|
13
|
+
colorHexCode: string;
|
|
14
|
+
};
|
|
15
|
+
INFO: {
|
|
16
|
+
name: string;
|
|
17
|
+
level: number;
|
|
18
|
+
colorName: string;
|
|
19
|
+
colorHexCode: string;
|
|
20
|
+
};
|
|
21
|
+
WARN: {
|
|
22
|
+
name: string;
|
|
23
|
+
level: number;
|
|
24
|
+
colorName: string;
|
|
25
|
+
colorHexCode: string;
|
|
26
|
+
};
|
|
27
|
+
ERROR: {
|
|
28
|
+
name: string;
|
|
29
|
+
level: number;
|
|
30
|
+
colorName: string;
|
|
31
|
+
colorHexCode: string;
|
|
32
|
+
};
|
|
33
|
+
FATAL: {
|
|
34
|
+
name: string;
|
|
35
|
+
level: number;
|
|
36
|
+
colorName: string;
|
|
37
|
+
colorHexCode: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
static resolveTemplateMessage(templateMessage: any, templateValues: any): any;
|
|
41
|
+
constructor(jsonReport: any, reportId: any);
|
|
42
|
+
key: any;
|
|
43
|
+
log: any;
|
|
44
|
+
reportId: any;
|
|
45
|
+
severity: {
|
|
46
|
+
name: string;
|
|
47
|
+
level: number;
|
|
48
|
+
colorName: string;
|
|
49
|
+
colorHexCode: string;
|
|
50
|
+
};
|
|
51
|
+
getLog(): any;
|
|
52
|
+
getReportId(): any;
|
|
53
|
+
getSeverity(): {
|
|
54
|
+
name: string;
|
|
55
|
+
level: number;
|
|
56
|
+
colorName: string;
|
|
57
|
+
colorHexCode: string;
|
|
58
|
+
};
|
|
59
|
+
getSeverityName(): string;
|
|
60
|
+
getColorName(): string;
|
|
61
|
+
getColorHexCode(): string;
|
|
62
|
+
initSeverity(jsonSeverity: any): {
|
|
63
|
+
name: string;
|
|
64
|
+
level: number;
|
|
65
|
+
colorName: string;
|
|
66
|
+
colorHexCode: string;
|
|
67
|
+
};
|
|
68
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export default class LogReport {
|
|
2
|
+
constructor(jsonReporter: any, parentReportId: any);
|
|
3
|
+
id: any;
|
|
4
|
+
key: any;
|
|
5
|
+
title: any;
|
|
6
|
+
subReports: any[];
|
|
7
|
+
logs: any[];
|
|
8
|
+
parentReportId: any;
|
|
9
|
+
getId(): any;
|
|
10
|
+
getTitle(): any;
|
|
11
|
+
getSubReports(): any[];
|
|
12
|
+
getLogs(): any[];
|
|
13
|
+
getAllLogs(): any[];
|
|
14
|
+
init(jsonReporter: any): void;
|
|
15
|
+
getHighestSeverity(currentSeverity?: {
|
|
16
|
+
name: string;
|
|
17
|
+
level: number;
|
|
18
|
+
colorName: string;
|
|
19
|
+
colorHexCode: string;
|
|
20
|
+
}): any;
|
|
21
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const _default: React.MemoExoticComponent<({ logs, onRowClick, selectedSeverity, setSelectedSeverity, }: {
|
|
2
|
+
logs: any;
|
|
3
|
+
onRowClick: any;
|
|
4
|
+
selectedSeverity: any;
|
|
5
|
+
setSelectedSeverity: any;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
7
|
+
export default _default;
|
|
8
|
+
import React from 'react';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function MultiSelectList({ selectedItems, handleChange, handleClose, anchor, }: Object): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const _default: import("@emotion/styled").StyledComponent<PropTypes.InferPropsInner<Pick<{
|
|
2
|
+
bgColor: PropTypes.Requireable<string>;
|
|
3
|
+
color: PropTypes.Requireable<string>;
|
|
4
|
+
labelInfo: PropTypes.Requireable<string>;
|
|
5
|
+
labelText: PropTypes.Validator<string>;
|
|
6
|
+
}, "labelText">> & Partial<PropTypes.InferPropsInner<Pick<{
|
|
7
|
+
bgColor: PropTypes.Requireable<string>;
|
|
8
|
+
color: PropTypes.Requireable<string>;
|
|
9
|
+
labelInfo: PropTypes.Requireable<string>;
|
|
10
|
+
labelText: PropTypes.Validator<string>;
|
|
11
|
+
}, "color" | "bgColor" | "labelInfo">>> & import("@mui/system").MUIStyledCommonProps<import("@mui/system").Theme>, {}, {}>;
|
|
12
|
+
export default _default;
|
|
13
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./report-viewer-dialog";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function ReportViewerDialog(props: any): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./SignInCallbackHandler";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./SilentRenewCallbackHandler";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./SnackbarProvider";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export default AboutDialog;
|
|
2
|
+
declare function AboutDialog({ open, onClose, globalVersionPromise, appName, appVersion, appGitTag, appLicense, additionalModulesPromise, }: {
|
|
3
|
+
open: any;
|
|
4
|
+
onClose: any;
|
|
5
|
+
globalVersionPromise: any;
|
|
6
|
+
appName: any;
|
|
7
|
+
appVersion: any;
|
|
8
|
+
appGitTag: any;
|
|
9
|
+
appLicense: any;
|
|
10
|
+
additionalModulesPromise: any;
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare namespace AboutDialog {
|
|
13
|
+
namespace propTypes {
|
|
14
|
+
const open: PropTypes.Validator<boolean>;
|
|
15
|
+
const onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
16
|
+
const appName: PropTypes.Validator<string>;
|
|
17
|
+
const appVersion: PropTypes.Requireable<string>;
|
|
18
|
+
const appGitTag: PropTypes.Requireable<string>;
|
|
19
|
+
const appLicense: PropTypes.Requireable<string>;
|
|
20
|
+
const globalVersionPromise: PropTypes.Requireable<(...args: any[]) => any>;
|
|
21
|
+
const additionalModulesPromise: PropTypes.Requireable<(...args: any[]) => any>;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export default GridLogo;
|
|
2
|
+
export function LogoText({ appName, appColor, style, onClick }: {
|
|
3
|
+
appName: any;
|
|
4
|
+
appColor: any;
|
|
5
|
+
style: any;
|
|
6
|
+
onClick: any;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export namespace LogoText {
|
|
9
|
+
namespace propTypes {
|
|
10
|
+
const appName: PropTypes.Validator<string>;
|
|
11
|
+
const appColor: PropTypes.Validator<string>;
|
|
12
|
+
const style: PropTypes.Requireable<object>;
|
|
13
|
+
const onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
declare function GridLogo({ appLogo, appName, appColor, onClick }: {
|
|
17
|
+
appLogo: any;
|
|
18
|
+
appName: any;
|
|
19
|
+
appColor: any;
|
|
20
|
+
onClick: any;
|
|
21
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
declare namespace GridLogo {
|
|
23
|
+
export namespace propTypes_1 {
|
|
24
|
+
export const appLogo: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
25
|
+
const appName_1: PropTypes.Validator<string>;
|
|
26
|
+
export { appName_1 as appName };
|
|
27
|
+
const appColor_1: PropTypes.Validator<string>;
|
|
28
|
+
export { appColor_1 as appColor };
|
|
29
|
+
const onClick_1: PropTypes.Requireable<(...args: any[]) => any>;
|
|
30
|
+
export { onClick_1 as onClick };
|
|
31
|
+
}
|
|
32
|
+
export { propTypes_1 as propTypes };
|
|
33
|
+
}
|
|
34
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export const DARK_THEME: "Dark";
|
|
2
|
+
export const LIGHT_THEME: "Light";
|
|
3
|
+
export const LANG_SYSTEM: "sys";
|
|
4
|
+
export const LANG_ENGLISH: "en";
|
|
5
|
+
export const LANG_FRENCH: "fr";
|
|
6
|
+
export default TopBar;
|
|
7
|
+
declare function TopBar({ appName, appColor, appLogo, appVersion, appLicense, onParametersClick, onLogoutClick, onLogoClick, user, children, appsAndUrls, onAboutClick, globalVersionPromise, additionalModulesPromise, onThemeClick, theme, onEquipmentLabellingClick, equipmentLabelling, onLanguageClick, language, }: {
|
|
8
|
+
appName: any;
|
|
9
|
+
appColor: any;
|
|
10
|
+
appLogo: any;
|
|
11
|
+
appVersion: any;
|
|
12
|
+
appLicense: any;
|
|
13
|
+
onParametersClick: any;
|
|
14
|
+
onLogoutClick: any;
|
|
15
|
+
onLogoClick: any;
|
|
16
|
+
user: any;
|
|
17
|
+
children: any;
|
|
18
|
+
appsAndUrls: any;
|
|
19
|
+
onAboutClick: any;
|
|
20
|
+
globalVersionPromise: any;
|
|
21
|
+
additionalModulesPromise: any;
|
|
22
|
+
onThemeClick: any;
|
|
23
|
+
theme: any;
|
|
24
|
+
onEquipmentLabellingClick: any;
|
|
25
|
+
equipmentLabelling: any;
|
|
26
|
+
onLanguageClick: any;
|
|
27
|
+
language: any;
|
|
28
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
declare namespace TopBar {
|
|
30
|
+
namespace propTypes {
|
|
31
|
+
const onParametersClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
32
|
+
const onLogoutClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
33
|
+
const onLogoClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
34
|
+
const appName: PropTypes.Requireable<string>;
|
|
35
|
+
const appColor: PropTypes.Requireable<string>;
|
|
36
|
+
const appLogo: PropTypes.Requireable<object>;
|
|
37
|
+
const appVersion: PropTypes.Requireable<string>;
|
|
38
|
+
const appLicense: PropTypes.Requireable<string>;
|
|
39
|
+
const user: PropTypes.Requireable<object>;
|
|
40
|
+
const children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
41
|
+
const appsAndUrls: PropTypes.Requireable<any[]>;
|
|
42
|
+
const onThemeClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
43
|
+
const theme: PropTypes.Requireable<string>;
|
|
44
|
+
const onAboutClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
45
|
+
const globalVersionPromise: PropTypes.Requireable<(...args: any[]) => any>;
|
|
46
|
+
const additionalModulesPromise: PropTypes.Requireable<(...args: any[]) => any>;
|
|
47
|
+
const onEquipmentLabellingClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
48
|
+
const equipmentLabelling: PropTypes.Requireable<boolean>;
|
|
49
|
+
const onLanguageClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
50
|
+
const language: PropTypes.Validator<string>;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export function generateTreeViewFinderClass(className: any): string;
|
|
2
|
+
declare const _default: import("@emotion/styled").StyledComponent<Pick<PropTypes.InferProps<{
|
|
3
|
+
open: PropTypes.Validator<boolean>;
|
|
4
|
+
onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
5
|
+
data: PropTypes.Validator<(PropTypes.InferProps<{
|
|
6
|
+
id: PropTypes.Validator<string>;
|
|
7
|
+
name: PropTypes.Validator<string>;
|
|
8
|
+
children: PropTypes.Requireable<any[]>;
|
|
9
|
+
}> | null | undefined)[]>;
|
|
10
|
+
onTreeBrowse: PropTypes.Requireable<(...args: any[]) => any>;
|
|
11
|
+
classes: PropTypes.Requireable<object>;
|
|
12
|
+
title: PropTypes.Requireable<string>;
|
|
13
|
+
contentText: PropTypes.Requireable<string>;
|
|
14
|
+
validationButtonText: PropTypes.Requireable<string>;
|
|
15
|
+
defaultSelected: PropTypes.Requireable<(string | null | undefined)[]>;
|
|
16
|
+
defaultExpanded: PropTypes.Requireable<(string | null | undefined)[]>;
|
|
17
|
+
onlyLeaves: PropTypes.Requireable<boolean>;
|
|
18
|
+
multiselect: PropTypes.Requireable<boolean>;
|
|
19
|
+
sortMethod: PropTypes.Requireable<(...args: any[]) => any>;
|
|
20
|
+
cancelButtonProps: PropTypes.Requireable<object>;
|
|
21
|
+
className: PropTypes.Requireable<string>;
|
|
22
|
+
}>, "className" | "title" | "onClose" | "contentText" | "validationButtonText" | "cancelButtonProps" | "onTreeBrowse" | PropTypes.RequiredKeys<{
|
|
23
|
+
open: PropTypes.Validator<boolean>;
|
|
24
|
+
onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
25
|
+
data: PropTypes.Validator<(PropTypes.InferProps<{
|
|
26
|
+
id: PropTypes.Validator<string>;
|
|
27
|
+
name: PropTypes.Validator<string>;
|
|
28
|
+
children: PropTypes.Requireable<any[]>;
|
|
29
|
+
}> | null | undefined)[]>;
|
|
30
|
+
onTreeBrowse: PropTypes.Requireable<(...args: any[]) => any>;
|
|
31
|
+
classes: PropTypes.Requireable<object>;
|
|
32
|
+
title: PropTypes.Requireable<string>;
|
|
33
|
+
contentText: PropTypes.Requireable<string>;
|
|
34
|
+
validationButtonText: PropTypes.Requireable<string>;
|
|
35
|
+
defaultSelected: PropTypes.Requireable<(string | null | undefined)[]>;
|
|
36
|
+
defaultExpanded: PropTypes.Requireable<(string | null | undefined)[]>;
|
|
37
|
+
onlyLeaves: PropTypes.Requireable<boolean>;
|
|
38
|
+
multiselect: PropTypes.Requireable<boolean>;
|
|
39
|
+
sortMethod: PropTypes.Requireable<(...args: any[]) => any>;
|
|
40
|
+
cancelButtonProps: PropTypes.Requireable<object>;
|
|
41
|
+
className: PropTypes.Requireable<string>;
|
|
42
|
+
}>> & {
|
|
43
|
+
classes?: object | null | undefined;
|
|
44
|
+
defaultExpanded?: (string | null | undefined)[] | null | undefined;
|
|
45
|
+
defaultSelected?: (string | null | undefined)[] | null | undefined;
|
|
46
|
+
onlyLeaves?: boolean | null | undefined;
|
|
47
|
+
multiselect?: boolean | null | undefined;
|
|
48
|
+
sortMethod?: ((...args: any[]) => any) | null | undefined;
|
|
49
|
+
} & {} & import("@mui/system").MUIStyledCommonProps<import("@mui/system").Theme>, {}, {}>;
|
|
50
|
+
export default _default;
|
|
51
|
+
/**
|
|
52
|
+
* This callback type is called `onTreeBrowseCallback` and is displayed as a global symbol.
|
|
53
|
+
*/
|
|
54
|
+
export type onTreeBrowseCallback = (nodeId: string) => any;
|
|
55
|
+
/**
|
|
56
|
+
* - callback to update data prop when walk into Tree
|
|
57
|
+
*/
|
|
58
|
+
export type onTreeBrowse = (defaultSelected?: any[] | undefined, defaultExpanded?: any[] | undefined, validationButtonText?: string | undefined, onlyLeaves?: boolean | undefined, multiselect?: boolean | undefined, cancelButtonProps?: Object | undefined) => any;
|
|
59
|
+
import PropTypes from 'prop-types';
|
|
@@ -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 @@
|
|
|
1
|
+
export { default, generateTreeViewFinderClass } from "./TreeViewFinder";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export default AutocompleteInput;
|
|
2
|
+
declare function AutocompleteInput({ name, label, options, outputTransform, inputTransform, readOnly, previousValue, allowNewValue, onChangeCallback, formProps, ...props }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
name: any;
|
|
5
|
+
label: any;
|
|
6
|
+
options: any;
|
|
7
|
+
outputTransform?: typeof identity | undefined;
|
|
8
|
+
inputTransform?: typeof identity | undefined;
|
|
9
|
+
readOnly?: boolean | undefined;
|
|
10
|
+
previousValue: any;
|
|
11
|
+
allowNewValue: any;
|
|
12
|
+
onChangeCallback: any;
|
|
13
|
+
formProps: any;
|
|
14
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare namespace AutocompleteInput {
|
|
16
|
+
namespace propTypes {
|
|
17
|
+
const name: PropTypes.Validator<string>;
|
|
18
|
+
const label: PropTypes.Requireable<string>;
|
|
19
|
+
const options: PropTypes.Validator<any[]>;
|
|
20
|
+
const outputTransform: PropTypes.Requireable<(...args: any[]) => any>;
|
|
21
|
+
const inputTransform: PropTypes.Requireable<(...args: any[]) => any>;
|
|
22
|
+
const readOnly: PropTypes.Requireable<boolean>;
|
|
23
|
+
const previousValue: PropTypes.Requireable<any>;
|
|
24
|
+
const allowNewValue: PropTypes.Requireable<boolean>;
|
|
25
|
+
const onChangeCallback: PropTypes.Requireable<(...args: any[]) => any>;
|
|
26
|
+
const formProps: PropTypes.Requireable<object>;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
import { identity } from './utils/functions';
|
|
30
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default BooleanInput;
|
|
2
|
+
declare function BooleanInput({ name, label, formProps, Input }: {
|
|
3
|
+
name: any;
|
|
4
|
+
label: any;
|
|
5
|
+
formProps: any;
|
|
6
|
+
Input: any;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare namespace BooleanInput {
|
|
9
|
+
namespace propTypes {
|
|
10
|
+
const name: PropTypes.Validator<string>;
|
|
11
|
+
const label: PropTypes.Requireable<string>;
|
|
12
|
+
const formProps: PropTypes.Requireable<object>;
|
|
13
|
+
const Input: PropTypes.Validator<NonNullable<PropTypes.ReactComponentLike>>;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default CheckboxInput;
|
|
2
|
+
declare function CheckboxInput({ name, label, formProps }: {
|
|
3
|
+
name: any;
|
|
4
|
+
label: any;
|
|
5
|
+
formProps: any;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare namespace CheckboxInput {
|
|
8
|
+
namespace propTypes {
|
|
9
|
+
const name: PropTypes.Validator<string>;
|
|
10
|
+
const label: PropTypes.Requireable<string>;
|
|
11
|
+
const formProps: PropTypes.Requireable<object>;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default SwitchInput;
|
|
2
|
+
declare function SwitchInput({ name, label, formProps }: {
|
|
3
|
+
name: any;
|
|
4
|
+
label: any;
|
|
5
|
+
formProps: any;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare namespace SwitchInput {
|
|
8
|
+
namespace propTypes {
|
|
9
|
+
const name: PropTypes.Validator<string>;
|
|
10
|
+
const label: PropTypes.Requireable<string>;
|
|
11
|
+
const formProps: PropTypes.Requireable<object>;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2023, RTE (http://www.rte-france.com)
|
|
3
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
4
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
|
+
*/
|
|
7
|
+
/// <reference types="node" />
|
|
8
|
+
import { FunctionComponent } from 'react';
|
|
9
|
+
import { UUID } from 'crypto';
|
|
10
|
+
export declare const NAME = "name";
|
|
11
|
+
interface DirectoryItemsInputProps {
|
|
12
|
+
label: string | undefined;
|
|
13
|
+
name: string;
|
|
14
|
+
elementType: string;
|
|
15
|
+
equipmentTypes?: string[];
|
|
16
|
+
itemFilter?: any;
|
|
17
|
+
titleId?: string;
|
|
18
|
+
hideErrorMessage?: boolean;
|
|
19
|
+
onRowChanged?: (a: boolean) => void;
|
|
20
|
+
onChange?: (e: any) => void;
|
|
21
|
+
disable?: boolean;
|
|
22
|
+
fetchDirectoryContent: (directoryUuid: UUID, elementTypes: string[]) => Promise<any>;
|
|
23
|
+
fetchRootFolders: (types: string[]) => Promise<any>;
|
|
24
|
+
fetchElementsInfos: (ids: UUID[], elementTypes: string[]) => Promise<any>;
|
|
25
|
+
labelRequiredFromContext?: boolean;
|
|
26
|
+
}
|
|
27
|
+
declare const DirectoryItemsInput: FunctionComponent<DirectoryItemsInputProps>;
|
|
28
|
+
export default DirectoryItemsInput;
|