@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.
- package/dist/chunks/{criteria-based-filter-edition-dialog.CbhgOSRk.js → criteria-based-filter-edition-dialog.DcXcQOoT.js} +21 -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/CustomAGGrid/custom-aggrid.d.ts +11 -0
- package/dist/components/CustomAGGrid/custom-aggrid.js +73 -0
- package/dist/components/CustomAGGrid/custom-aggrid.style.d.ts +20 -0
- package/dist/components/CustomAGGrid/custom-aggrid.style.js +47 -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.d.ts +3 -2
- package/dist/components/filter/utils/filter-form-utils.js +42 -28
- 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 +6 -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 +8 -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 +65 -217
- package/dist/index.js +104 -77
- package/dist/module-mui.d.js +1 -0
- 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/EquipmentType.d.ts +13 -9
- package/dist/utils/EquipmentType.js +9 -9
- 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
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
name:
|
|
5
|
-
label
|
|
6
|
-
formProps
|
|
7
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare namespace CheckboxInput {
|
|
9
|
-
namespace propTypes {
|
|
10
|
-
let name: PropTypes.Validator<string>;
|
|
11
|
-
let label: PropTypes.Requireable<string>;
|
|
12
|
-
let formProps: PropTypes.Requireable<object>;
|
|
13
|
-
}
|
|
1
|
+
import { CheckboxProps } from '@mui/material';
|
|
2
|
+
|
|
3
|
+
export interface CheckboxInputProps {
|
|
4
|
+
name: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
formProps?: CheckboxProps;
|
|
14
7
|
}
|
|
8
|
+
declare const CheckboxInput: ({ name, label, formProps }: CheckboxInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default CheckboxInput;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
2
|
import BooleanInput from "./boolean-input.js";
|
|
4
3
|
import { Checkbox } from "@mui/material";
|
|
5
4
|
const CheckboxInput = ({ name, label, formProps }) => {
|
|
@@ -13,11 +12,6 @@ const CheckboxInput = ({ name, label, formProps }) => {
|
|
|
13
12
|
}
|
|
14
13
|
);
|
|
15
14
|
};
|
|
16
|
-
CheckboxInput.propTypes = {
|
|
17
|
-
name: PropTypes.string.isRequired,
|
|
18
|
-
label: PropTypes.string,
|
|
19
|
-
formProps: PropTypes.object
|
|
20
|
-
};
|
|
21
15
|
export {
|
|
22
16
|
CheckboxInput as default
|
|
23
17
|
};
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
name:
|
|
5
|
-
label
|
|
6
|
-
formProps
|
|
7
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare namespace SwitchInput {
|
|
9
|
-
namespace propTypes {
|
|
10
|
-
let name: PropTypes.Validator<string>;
|
|
11
|
-
let label: PropTypes.Requireable<string>;
|
|
12
|
-
let formProps: PropTypes.Requireable<object>;
|
|
13
|
-
}
|
|
1
|
+
import { SwitchProps } from '@mui/material';
|
|
2
|
+
|
|
3
|
+
export interface SwitchInputProps {
|
|
4
|
+
name: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
formProps?: SwitchProps;
|
|
14
7
|
}
|
|
8
|
+
declare const SwitchInput: ({ name, label, formProps }: SwitchInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default SwitchInput;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
2
|
import BooleanInput from "./boolean-input.js";
|
|
4
3
|
import { Switch } from "@mui/material";
|
|
5
4
|
const SwitchInput = ({ name, label, formProps }) => {
|
|
@@ -13,11 +12,6 @@ const SwitchInput = ({ name, label, formProps }) => {
|
|
|
13
12
|
}
|
|
14
13
|
);
|
|
15
14
|
};
|
|
16
|
-
SwitchInput.propTypes = {
|
|
17
|
-
name: PropTypes.string.isRequired,
|
|
18
|
-
label: PropTypes.string,
|
|
19
|
-
formProps: PropTypes.object
|
|
20
|
-
};
|
|
21
15
|
export {
|
|
22
16
|
SwitchInput as default
|
|
23
17
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { UUID } from 'crypto';
|
|
2
1
|
import { FunctionComponent } from 'react';
|
|
3
2
|
|
|
4
3
|
export declare const NAME = "name";
|
|
@@ -14,7 +13,6 @@ export interface DirectoryItemsInputProps {
|
|
|
14
13
|
onChange?: (e: any) => void;
|
|
15
14
|
disable?: boolean;
|
|
16
15
|
labelRequiredFromContext?: boolean;
|
|
17
|
-
fetchDirectoryElementPath?: (id: UUID) => Promise<any[]>;
|
|
18
16
|
}
|
|
19
17
|
declare const DirectoryItemsInput: FunctionComponent<DirectoryItemsInputProps>;
|
|
20
18
|
export default DirectoryItemsInput;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { FormControl, Chip, Grid, Tooltip, IconButton } from "@mui/material";
|
|
3
|
-
import { OverflowableText } from "../../OverflowableText/overflowable-text.js";
|
|
4
3
|
import FieldLabel from "./utils/field-label.js";
|
|
5
4
|
import FolderIcon from "@mui/icons-material/Folder";
|
|
6
|
-
import { useState, useMemo,
|
|
5
|
+
import { useState, useMemo, useCallback } from "react";
|
|
7
6
|
import { useFieldArray, useController } from "react-hook-form";
|
|
8
7
|
import { useIntl } from "react-intl";
|
|
9
|
-
import MidFormError from "./error-management/mid-form-error.js";
|
|
10
8
|
import { RawReadOnlyInput } from "./raw-read-only-input.js";
|
|
11
|
-
import { mergeSx } from "../../../utils/styles.js";
|
|
12
|
-
import DirectoryItemSelector from "../../DirectoryItemSelector/directory-item-selector.js";
|
|
13
9
|
import { useCustomFormContext } from "./provider/use-custom-form-context.js";
|
|
14
10
|
import { isFieldRequired } from "./utils/functions.js";
|
|
15
11
|
import ErrorInput from "./error-management/error-input.js";
|
|
16
12
|
import { useSnackMessage } from "../../../hooks/useSnackMessage.js";
|
|
17
|
-
import {
|
|
13
|
+
import { mergeSx } from "../../../utils/styles.js";
|
|
14
|
+
import { OverflowableText } from "../../OverflowableText/overflowable-text.js";
|
|
15
|
+
import MidFormError from "./error-management/mid-form-error.js";
|
|
16
|
+
import DirectoryItemSelector from "../../DirectoryItemSelector/directory-item-selector.js";
|
|
17
|
+
import { fetchDirectoryElementPath } from "../../../services/directory.js";
|
|
18
18
|
const NAME = "name";
|
|
19
19
|
const styles = {
|
|
20
20
|
formDirectoryElements1: {
|
|
@@ -58,8 +58,7 @@ const DirectoryItemsInput = ({
|
|
|
58
58
|
onRowChanged,
|
|
59
59
|
onChange,
|
|
60
60
|
disable = false,
|
|
61
|
-
labelRequiredFromContext = true
|
|
62
|
-
fetchDirectoryElementPath
|
|
61
|
+
labelRequiredFromContext = true
|
|
63
62
|
}) => {
|
|
64
63
|
const { snackError } = useSnackMessage();
|
|
65
64
|
const intl = useIntl();
|
|
@@ -77,7 +76,6 @@ const DirectoryItemsInput = ({
|
|
|
77
76
|
});
|
|
78
77
|
const formContext = useCustomFormContext();
|
|
79
78
|
const { getValues, validationSchema } = formContext;
|
|
80
|
-
const { fetchDirectoryContent, fetchRootFolders, fetchElementsInfos } = useContext(FilterContext);
|
|
81
79
|
const {
|
|
82
80
|
fieldState: { error }
|
|
83
81
|
} = useController({
|
|
@@ -139,7 +137,7 @@ const DirectoryItemsInput = ({
|
|
|
139
137
|
var _a;
|
|
140
138
|
const chips = getValues(name);
|
|
141
139
|
const chip = (_a = chips.at(index)) == null ? void 0 : _a.id;
|
|
142
|
-
if (chip
|
|
140
|
+
if (chip) {
|
|
143
141
|
fetchDirectoryElementPath(chip).then((response) => {
|
|
144
142
|
const path = response.reverse().filter((e) => e.elementUuid !== chip).map((e) => e.elementUuid);
|
|
145
143
|
setExpanded(path);
|
|
@@ -149,7 +147,7 @@ const DirectoryItemsInput = ({
|
|
|
149
147
|
});
|
|
150
148
|
}
|
|
151
149
|
},
|
|
152
|
-
[getValues, name
|
|
150
|
+
[getValues, name]
|
|
153
151
|
);
|
|
154
152
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
155
153
|
/* @__PURE__ */ jsxs(
|
|
@@ -157,6 +155,7 @@ const DirectoryItemsInput = ({
|
|
|
157
155
|
{
|
|
158
156
|
sx: mergeSx(
|
|
159
157
|
styles.formDirectoryElements1,
|
|
158
|
+
//@ts-ignore
|
|
160
159
|
(error == null ? void 0 : error.message) && styles.formDirectoryElementsError
|
|
161
160
|
),
|
|
162
161
|
error: !!(error == null ? void 0 : error.message),
|
|
@@ -219,9 +218,6 @@ const DirectoryItemsInput = ({
|
|
|
219
218
|
equipmentTypes,
|
|
220
219
|
title: intl.formatMessage({ id: titleId }),
|
|
221
220
|
itemFilter,
|
|
222
|
-
fetchDirectoryContent,
|
|
223
|
-
fetchRootFolders,
|
|
224
|
-
fetchElementsInfos,
|
|
225
221
|
selected,
|
|
226
222
|
expanded,
|
|
227
223
|
multiSelect
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
declare const MidFormError: ({ message }: {
|
|
4
|
+
message: string | ReactNode;
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
1
6
|
export default MidFormError;
|
|
2
|
-
declare function MidFormError({ message }: {
|
|
3
|
-
message: any;
|
|
4
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,21 +1,4 @@
|
|
|
1
|
+
import { TextInputProps } from '../text-input';
|
|
2
|
+
|
|
3
|
+
declare const IntegerInput: (props: TextInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
1
4
|
export default IntegerInput;
|
|
2
|
-
declare function IntegerInput(props: any): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
declare namespace IntegerInput {
|
|
4
|
-
let propTypes: {
|
|
5
|
-
name?: import('react').Validator<string> | undefined;
|
|
6
|
-
label?: import('react').Validator<string | null | undefined> | undefined;
|
|
7
|
-
labelValues?: import('react').Validator<any> | undefined;
|
|
8
|
-
id?: import('react').Validator<string | null | undefined> | undefined;
|
|
9
|
-
adornment?: import('react').Validator<{
|
|
10
|
-
position: string;
|
|
11
|
-
text: string;
|
|
12
|
-
} | null | undefined> | undefined;
|
|
13
|
-
customAdornment?: import('react').Validator<import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null | undefined> | undefined;
|
|
14
|
-
outputTransform?: import('react').Validator<((value: string) => import("../../../../utils/types").Input | null) | null | undefined> | undefined;
|
|
15
|
-
inputTransform?: import('react').Validator<((value: import("../../../../utils/types").Input) => string) | null | undefined> | undefined;
|
|
16
|
-
acceptValue?: import('react').Validator<((value: string) => boolean) | null | undefined> | undefined;
|
|
17
|
-
previousValue?: import('react').Validator<import("../../../../utils/types").Input | null | undefined> | undefined;
|
|
18
|
-
clearable?: import('react').Validator<boolean | null | undefined> | undefined;
|
|
19
|
-
formProps?: import('react').Validator<Omit<import("@mui/material").TextFieldProps | import("../utils/text-field-with-adornment").TextFieldWithAdornmentProps, "onChange" | "value" | "InputProps" | "inputProps" | "inputRef"> | null | undefined> | undefined;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
@@ -6,7 +6,7 @@ const IntegerInput = (props) => {
|
|
|
6
6
|
if ("-" === value) {
|
|
7
7
|
return value;
|
|
8
8
|
}
|
|
9
|
-
return value === null || isNaN(value) ? "" : value.toString();
|
|
9
|
+
return value === null || typeof value === "number" && isNaN(value) ? "" : value.toString();
|
|
10
10
|
};
|
|
11
11
|
const outputTransform = (value) => {
|
|
12
12
|
if (value === "-") {
|
|
@@ -27,9 +27,6 @@ const IntegerInput = (props) => {
|
|
|
27
27
|
}
|
|
28
28
|
);
|
|
29
29
|
};
|
|
30
|
-
IntegerInput.propTypes = {
|
|
31
|
-
...TextInput.propTypes
|
|
32
|
-
};
|
|
33
30
|
export {
|
|
34
31
|
IntegerInput as default
|
|
35
32
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback } from "react";
|
|
2
3
|
import { Chip } from "@mui/material";
|
|
3
4
|
import AutocompleteInput from "../autocomplete-inputs/autocomplete-input.js";
|
|
4
5
|
import { useLocalizedCountries } from "../../../../hooks/localized-countries-hook.js";
|
|
@@ -9,13 +10,23 @@ const CountriesInput = ({
|
|
|
9
10
|
}) => {
|
|
10
11
|
const { language } = useCustomFormContext();
|
|
11
12
|
const { translate, countryCodes } = useLocalizedCountries(language);
|
|
13
|
+
const translateOption = useCallback(
|
|
14
|
+
(option) => {
|
|
15
|
+
if (typeof option === "string") {
|
|
16
|
+
return translate(option);
|
|
17
|
+
} else {
|
|
18
|
+
return translate(option.label);
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
[translate]
|
|
22
|
+
);
|
|
12
23
|
return /* @__PURE__ */ jsx(
|
|
13
24
|
AutocompleteInput,
|
|
14
25
|
{
|
|
15
26
|
name,
|
|
16
27
|
label,
|
|
17
28
|
options: countryCodes,
|
|
18
|
-
getOptionLabel:
|
|
29
|
+
getOptionLabel: translateOption,
|
|
19
30
|
fullWidth: true,
|
|
20
31
|
multiple: true,
|
|
21
32
|
renderTags: (val, getTagsProps) => val.map((code, index) => /* @__PURE__ */ jsx(
|
|
@@ -1,21 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
min: any;
|
|
7
|
-
max: any;
|
|
8
|
-
step: any;
|
|
9
|
-
size?: string | undefined;
|
|
10
|
-
onValueChange?: typeof identity | undefined;
|
|
11
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
declare namespace SliderInput {
|
|
13
|
-
namespace propTypes {
|
|
14
|
-
let name: PropTypes.Validator<string>;
|
|
15
|
-
let min: PropTypes.Validator<number>;
|
|
16
|
-
let max: PropTypes.Validator<number>;
|
|
17
|
-
let step: PropTypes.Validator<number>;
|
|
18
|
-
let size: PropTypes.Requireable<string>;
|
|
19
|
-
let onValueChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
20
|
-
}
|
|
1
|
+
import { SliderProps } from '@mui/material';
|
|
2
|
+
|
|
3
|
+
export interface SliderInputProps extends SliderProps {
|
|
4
|
+
name: string;
|
|
5
|
+
onValueChanged: (value: any) => void;
|
|
21
6
|
}
|
|
7
|
+
declare const SliderInput: ({ name, min, max, step, size, onValueChanged, }: SliderInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default SliderInput;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
2
|
import { Slider } from "@mui/material";
|
|
4
3
|
import { useController } from "react-hook-form";
|
|
5
4
|
import { identity } from "./utils/functions.js";
|
|
@@ -9,13 +8,14 @@ const SliderInput = ({
|
|
|
9
8
|
max,
|
|
10
9
|
step,
|
|
11
10
|
size = "small",
|
|
12
|
-
|
|
11
|
+
onValueChanged = identity
|
|
13
12
|
}) => {
|
|
14
13
|
const {
|
|
15
14
|
field: { onChange, value }
|
|
16
15
|
} = useController({ name });
|
|
17
|
-
const handleValueChange = (
|
|
18
|
-
|
|
16
|
+
const handleValueChange = (event, value2, activeThumb) => {
|
|
17
|
+
onValueChanged(value2);
|
|
18
|
+
onChange(value2);
|
|
19
19
|
};
|
|
20
20
|
return /* @__PURE__ */ jsx(
|
|
21
21
|
Slider,
|
|
@@ -29,14 +29,6 @@ const SliderInput = ({
|
|
|
29
29
|
}
|
|
30
30
|
);
|
|
31
31
|
};
|
|
32
|
-
SliderInput.propTypes = {
|
|
33
|
-
name: PropTypes.string.isRequired,
|
|
34
|
-
min: PropTypes.number.isRequired,
|
|
35
|
-
max: PropTypes.number.isRequired,
|
|
36
|
-
step: PropTypes.number.isRequired,
|
|
37
|
-
size: PropTypes.string,
|
|
38
|
-
onValueChange: PropTypes.func
|
|
39
|
-
};
|
|
40
32
|
export {
|
|
41
33
|
SliderInput as default
|
|
42
34
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Input } from '../../../utils/types
|
|
1
|
+
import { Input } from '../../../utils/types';
|
|
2
2
|
import { TextFieldWithAdornmentProps } from './utils/text-field-with-adornment';
|
|
3
3
|
import { TextFieldProps } from '@mui/material';
|
|
4
4
|
import { FunctionComponent, ReactElement } from 'react';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { elementExistsType } from '../../filter/criteria-based/criteria-based-filter-edition-dialog';
|
|
2
2
|
import { UUID } from 'crypto';
|
|
3
|
-
import { ElementType } from '../../../utils/ElementType
|
|
3
|
+
import { ElementType } from '../../../utils/ElementType';
|
|
4
4
|
import { TextFieldProps } from '@mui/material';
|
|
5
5
|
import { FunctionComponent } from 'react';
|
|
6
6
|
|
|
@@ -7,7 +7,7 @@ import "@react-querybuilder/material";
|
|
|
7
7
|
import "react-querybuilder";
|
|
8
8
|
import "react-intl";
|
|
9
9
|
import "react-hook-form";
|
|
10
|
-
import { j } from "../../../chunks/criteria-based-filter-edition-dialog.
|
|
10
|
+
import { j } from "../../../chunks/criteria-based-filter-edition-dialog.DcXcQOoT.js";
|
|
11
11
|
import "./combinator-selector.js";
|
|
12
12
|
import "./add-button.js";
|
|
13
13
|
import "./value-selector.js";
|
|
@@ -3,44 +3,38 @@ import "react";
|
|
|
3
3
|
import "uuid";
|
|
4
4
|
import "../../TreeViewFinder/TreeViewFinder.js";
|
|
5
5
|
import "../../TopBar/TopBar.js";
|
|
6
|
-
import "../../TopBar/GridLogo.js";
|
|
7
|
-
import "../../TopBar/AboutDialog.js";
|
|
8
|
-
import "../../SnackbarProvider/SnackbarProvider.js";
|
|
9
|
-
import "react-router-dom";
|
|
10
|
-
import "../../../utils/AuthService.js";
|
|
11
6
|
import "@mui/material";
|
|
12
7
|
import "@mui/icons-material";
|
|
8
|
+
import "@mui/lab";
|
|
13
9
|
import "react-intl";
|
|
10
|
+
import "notistack";
|
|
11
|
+
import "react-router-dom";
|
|
12
|
+
import "../../../utils/AuthService.js";
|
|
14
13
|
import "../../MuiVirtualizedTable/MuiVirtualizedTable.js";
|
|
15
14
|
import "../../ReportViewer/report-item.js";
|
|
16
15
|
import "../../ReportViewer/log-table.js";
|
|
17
16
|
import "../../ReportViewer/report-tree-view-context.js";
|
|
18
17
|
import "@mui/x-tree-view";
|
|
19
18
|
import "../../OverflowableText/overflowable-text.js";
|
|
20
|
-
import "
|
|
19
|
+
import "clsx";
|
|
21
20
|
import "../react-hook-form/utils/submit-button.js";
|
|
22
21
|
import "../react-hook-form/utils/cancel-button.js";
|
|
23
22
|
import "../react-hook-form/provider/custom-form-provider.js";
|
|
24
23
|
import "../../dialogs/description-modification-dialog.js";
|
|
25
24
|
import "react-hook-form";
|
|
26
|
-
import "
|
|
27
|
-
import "notistack";
|
|
25
|
+
import "../../../services/explore.js";
|
|
28
26
|
import "yup";
|
|
29
27
|
import "../react-hook-form/provider/use-custom-form-context.js";
|
|
30
28
|
import "../../dialogs/popup-confirmation-dialog.js";
|
|
31
|
-
import { i } from "../../../chunks/criteria-based-filter-edition-dialog.
|
|
29
|
+
import { i } from "../../../chunks/criteria-based-filter-edition-dialog.DcXcQOoT.js";
|
|
32
30
|
import "ag-grid-react";
|
|
33
31
|
import "ag-grid-community/styles/ag-grid.css";
|
|
34
32
|
import "ag-grid-community/styles/ag-theme-alpine.css";
|
|
35
33
|
import "autosuggest-highlight/match";
|
|
36
34
|
import "autosuggest-highlight/parse";
|
|
37
|
-
import "clsx";
|
|
38
35
|
import "../../CardErrorBoundary/card-error-boundary.js";
|
|
39
|
-
import "../react-hook-form/slider-input.js";
|
|
40
|
-
import "../react-hook-form/numbers/integer-input.js";
|
|
41
|
-
import "../react-hook-form/booleans/checkbox-input.js";
|
|
42
|
-
import "../react-hook-form/booleans/switch-input.js";
|
|
43
36
|
import "../react-hook-form/directory-items-input.js";
|
|
37
|
+
import "../../CustomAGGrid/custom-aggrid.js";
|
|
44
38
|
import "../../../chunks/filter-properties.B7-q_yPf.js";
|
|
45
39
|
import "@mui/icons-material/Delete";
|
|
46
40
|
import "@mui/material/IconButton";
|
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "@mui/material/IconButton";
|
|
3
3
|
import "@mui/icons-material/Delete";
|
|
4
4
|
import "react-hook-form";
|
|
5
|
-
import { h } from "../../../chunks/criteria-based-filter-edition-dialog.
|
|
5
|
+
import { h } from "../../../chunks/criteria-based-filter-edition-dialog.DcXcQOoT.js";
|
|
6
6
|
import "../../filter/expert/expert-filter-utils.js";
|
|
7
7
|
export {
|
|
8
8
|
h as default
|
|
@@ -9,7 +9,7 @@ import "react-hook-form";
|
|
|
9
9
|
import "../../../utils/field-constants.js";
|
|
10
10
|
import "../../filter/expert/expert-filter.type.js";
|
|
11
11
|
import "../../../utils/equipment-types.js";
|
|
12
|
-
import { V } from "../../../chunks/criteria-based-filter-edition-dialog.
|
|
12
|
+
import { V } from "../../../chunks/criteria-based-filter-edition-dialog.DcXcQOoT.js";
|
|
13
13
|
import "../../../utils/ElementType.js";
|
|
14
14
|
import "./property-value-editor.js";
|
|
15
15
|
import "../../filter/constants/filter-constants.js";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export default card_error_boundary_en;
|
|
2
1
|
/**
|
|
3
2
|
* Copyright (c) 2022, RTE (http://www.rte-france.com)
|
|
4
3
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -10,3 +9,4 @@ declare const card_error_boundary_en: {
|
|
|
10
9
|
'card_error_boundary/content': string;
|
|
11
10
|
'card_error_boundary/expandederrorheader': string;
|
|
12
11
|
};
|
|
12
|
+
export default card_error_boundary_en;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export default card_error_boundary_fr;
|
|
2
1
|
/**
|
|
3
2
|
* Copyright (c) 2022, RTE (http://www.rte-france.com)
|
|
4
3
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -10,3 +9,4 @@ declare const card_error_boundary_fr: {
|
|
|
10
9
|
'card_error_boundary/content': string;
|
|
11
10
|
'card_error_boundary/expandederrorheader': string;
|
|
12
11
|
};
|
|
12
|
+
export default card_error_boundary_fr;
|
|
@@ -1,5 +1,11 @@
|
|
|
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
|
+
declare const common_button_en: {
|
|
8
|
+
cancel: string;
|
|
9
|
+
validate: string;
|
|
10
|
+
};
|
|
1
11
|
export default common_button_en;
|
|
2
|
-
declare namespace common_button_en {
|
|
3
|
-
let cancel: string;
|
|
4
|
-
let validate: string;
|
|
5
|
-
}
|
|
@@ -1,5 +1,11 @@
|
|
|
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
|
+
declare const common_button_fr: {
|
|
8
|
+
cancel: string;
|
|
9
|
+
validate: string;
|
|
10
|
+
};
|
|
1
11
|
export default common_button_fr;
|
|
2
|
-
declare namespace common_button_fr {
|
|
3
|
-
let cancel: string;
|
|
4
|
-
let validate: string;
|
|
5
|
-
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export default directory_items_input_en;
|
|
2
1
|
/**
|
|
3
2
|
* Copyright (c) 2024, RTE (http://www.rte-france.com)
|
|
4
3
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -8,3 +7,4 @@ export default directory_items_input_en;
|
|
|
8
7
|
declare const directory_items_input_en: {
|
|
9
8
|
'directory_items_input/ElementAlreadyUsed': string;
|
|
10
9
|
};
|
|
10
|
+
export default directory_items_input_en;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export default directory_items_input_fr;
|
|
2
1
|
/**
|
|
3
2
|
* Copyright (c) 2024, RTE (http://www.rte-france.com)
|
|
4
3
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -8,3 +7,4 @@ export default directory_items_input_fr;
|
|
|
8
7
|
declare const directory_items_input_fr: {
|
|
9
8
|
'directory_items_input/ElementAlreadyUsed': string;
|
|
10
9
|
};
|
|
10
|
+
export default directory_items_input_fr;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export default element_search_en;
|
|
2
1
|
/**
|
|
3
2
|
* Copyright (c) 2022, RTE (http://www.rte-france.com)
|
|
4
3
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -9,3 +8,4 @@ declare const element_search_en: {
|
|
|
9
8
|
'element_search/label': string;
|
|
10
9
|
'element_search/noResult': string;
|
|
11
10
|
};
|
|
11
|
+
export default element_search_en;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export default element_search_fr;
|
|
2
1
|
/**
|
|
3
2
|
* Copyright (c) 2022, RTE (http://www.rte-france.com)
|
|
4
3
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -9,3 +8,4 @@ declare const element_search_fr: {
|
|
|
9
8
|
'element_search/label': string;
|
|
10
9
|
'element_search/noResult': string;
|
|
11
10
|
};
|
|
11
|
+
export default element_search_fr;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export default equipment_search_en;
|
|
2
1
|
/**
|
|
3
2
|
* Copyright (c) 2022, RTE (http://www.rte-france.com)
|
|
4
3
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -23,3 +22,4 @@ declare const equipment_search_en: {
|
|
|
23
22
|
'equipment_search/substationTag': string;
|
|
24
23
|
'equipment_search/busTag': string;
|
|
25
24
|
};
|
|
25
|
+
export default equipment_search_en;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export default equipment_search_fr;
|
|
2
1
|
/**
|
|
3
2
|
* Copyright (c) 2022, RTE (http://www.rte-france.com)
|
|
4
3
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -23,3 +22,4 @@ declare const equipment_search_fr: {
|
|
|
23
22
|
'equipment_search/substationTag': string;
|
|
24
23
|
'equipment_search/busTag': string;
|
|
25
24
|
};
|
|
25
|
+
export default equipment_search_fr;
|
|
@@ -1,22 +1,28 @@
|
|
|
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
|
+
declare const filter_en: {
|
|
8
|
+
OR: string;
|
|
9
|
+
AND: string;
|
|
10
|
+
rule: string;
|
|
11
|
+
subGroup: string;
|
|
12
|
+
is: string;
|
|
13
|
+
contains: string;
|
|
14
|
+
beginsWith: string;
|
|
15
|
+
endsWith: string;
|
|
16
|
+
exists: string;
|
|
17
|
+
not_exists: string;
|
|
18
|
+
between: string;
|
|
19
|
+
in: string;
|
|
20
|
+
isPartOf: string;
|
|
21
|
+
isNotPartOf: string;
|
|
22
|
+
emptyRule: string;
|
|
23
|
+
incorrectRule: string;
|
|
24
|
+
betweenRule: string;
|
|
25
|
+
emptyGroup: string;
|
|
26
|
+
Hvdc: string;
|
|
27
|
+
};
|
|
1
28
|
export default filter_en;
|
|
2
|
-
declare namespace filter_en {
|
|
3
|
-
export let OR: string;
|
|
4
|
-
export let AND: string;
|
|
5
|
-
export let rule: string;
|
|
6
|
-
export let subGroup: string;
|
|
7
|
-
export let is: string;
|
|
8
|
-
export let contains: string;
|
|
9
|
-
export let beginsWith: string;
|
|
10
|
-
export let endsWith: string;
|
|
11
|
-
export let exists: string;
|
|
12
|
-
export let not_exists: string;
|
|
13
|
-
export let between: string;
|
|
14
|
-
let _in: string;
|
|
15
|
-
export { _in as in };
|
|
16
|
-
export let isPartOf: string;
|
|
17
|
-
export let isNotPartOf: string;
|
|
18
|
-
export let emptyRule: string;
|
|
19
|
-
export let incorrectRule: string;
|
|
20
|
-
export let betweenRule: string;
|
|
21
|
-
export let emptyGroup: string;
|
|
22
|
-
}
|
|
@@ -16,7 +16,8 @@ const filter_en = {
|
|
|
16
16
|
emptyRule: "Filter contains an empty field",
|
|
17
17
|
incorrectRule: "Filter contains an incorrect field",
|
|
18
18
|
betweenRule: "Left value of 'between' rule have to be lower than the right value",
|
|
19
|
-
emptyGroup: "Filter contains an empty group. Consider removing it or adding rules to this group"
|
|
19
|
+
emptyGroup: "Filter contains an empty group. Consider removing it or adding rules to this group",
|
|
20
|
+
Hvdc: "HVDC"
|
|
20
21
|
};
|
|
21
22
|
export {
|
|
22
23
|
filter_en as default
|