@gridsuite/commons-ui 0.63.5 → 0.64.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/components/CustomAGGrid/custom-aggrid.d.ts +1 -1
- package/dist/components/DirectoryItemSelector/directory-item-selector.d.ts +2 -2
- package/dist/components/ElementSearchDialog/index.d.ts +1 -0
- package/dist/components/ExpandableGroup/expandable-group.d.ts +2 -2
- package/dist/components/ExpandableGroup/index.d.ts +1 -0
- package/dist/components/FlatParameters/index.d.ts +1 -0
- package/dist/components/MuiVirtualizedTable/index.d.ts +2 -1
- package/dist/components/MuiVirtualizedTable/index.js +4 -1
- package/dist/components/MultipleSelectionDialog/index.d.ts +1 -0
- package/dist/components/OverflowableText/index.d.ts +1 -0
- package/dist/components/ReportViewer/index.d.ts +1 -0
- package/dist/components/ReportViewerDialog/index.d.ts +1 -0
- package/dist/components/TopBar/index.d.ts +1 -0
- package/dist/components/dialogs/custom-mui-dialog.d.ts +2 -2
- package/dist/components/dialogs/description-modification-dialog.d.ts +2 -2
- package/dist/components/filter/criteria-based/criteria-based-filter-edition-dialog.d.ts +2 -2
- package/dist/components/filter/explicit-naming/explicit-naming-filter-edition-dialog.d.ts +2 -2
- package/dist/components/filter/filter-form.js +2 -11
- package/dist/components/inputs/react-hook-form/ExpandingTextField.d.ts +1 -1
- package/dist/components/inputs/react-hook-form/ag-grid-table/csv-uploader/csv-uploader.d.ts +2 -2
- package/dist/components/inputs/react-hook-form/description-field.d.ts +8 -0
- package/dist/components/inputs/react-hook-form/description-field.js +48 -0
- package/dist/components/inputs/react-hook-form/error-management/field-error-alert.d.ts +2 -2
- package/dist/components/inputs/react-hook-form/error-management/mid-form-error.d.ts +3 -2
- package/dist/components/inputs/react-hook-form/radio-input.d.ts +2 -2
- package/dist/components/inputs/react-hook-form/raw-read-only-input.d.ts +3 -2
- package/dist/components/inputs/react-hook-form/select-inputs/countries-input.d.ts +2 -2
- package/dist/components/inputs/react-hook-form/select-inputs/mui-select-input.d.ts +3 -3
- package/dist/components/inputs/react-hook-form/unique-name-input.d.ts +2 -2
- package/dist/components/inputs/react-hook-form/utils/field-label.d.ts +1 -1
- package/dist/components/inputs/react-query-builder/custom-react-query-builder.d.ts +2 -2
- package/dist/components/inputs/select-clearable.d.ts +2 -2
- package/dist/index.d.ts +51 -8
- package/dist/index.js +154 -152
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ interface CustomAGGGridStyleProps {
|
|
|
5
5
|
shouldHidePinnedHeaderRightBorder?: boolean;
|
|
6
6
|
showOverlay?: boolean;
|
|
7
7
|
}
|
|
8
|
-
interface CustomAGGridProps extends AgGridReactProps, CustomAGGGridStyleProps {
|
|
8
|
+
export interface CustomAGGridProps extends AgGridReactProps, CustomAGGGridStyleProps {
|
|
9
9
|
}
|
|
10
10
|
declare const CustomAGGrid: React.ForwardRefExoticComponent<CustomAGGridProps & React.RefAttributes<AgGridReact<any>>>;
|
|
11
11
|
export default CustomAGGrid;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TreeViewFinderProps } from '../TreeViewFinder/TreeViewFinder';
|
|
2
2
|
import { UUID } from 'crypto';
|
|
3
3
|
|
|
4
|
-
interface DirectoryItemSelectorProps extends TreeViewFinderProps {
|
|
4
|
+
export interface DirectoryItemSelectorProps extends TreeViewFinderProps {
|
|
5
5
|
open: boolean;
|
|
6
6
|
types: string[];
|
|
7
7
|
equipmentTypes?: string[];
|
|
@@ -17,5 +17,5 @@ interface DirectoryItemSelectorProps extends TreeViewFinderProps {
|
|
|
17
17
|
multiselect?: boolean;
|
|
18
18
|
expanded?: UUID[];
|
|
19
19
|
}
|
|
20
|
-
declare function DirectoryItemSelector({ open, types, equipmentTypes, itemFilter, expanded, ...otherTreeViewFinderProps }: DirectoryItemSelectorProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
declare function DirectoryItemSelector({ open, types, equipmentTypes, itemFilter, expanded, ...otherTreeViewFinderProps }: Readonly<DirectoryItemSelectorProps>): import("react/jsx-runtime").JSX.Element;
|
|
21
21
|
export default DirectoryItemSelector;
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
6
|
*/
|
|
7
7
|
export { default as ElementSearchDialog } from './element-search-dialog';
|
|
8
|
+
export type { ElementSearchDialogProps } from './element-search-dialog';
|
|
8
9
|
export { default as TagRenderer } from './tag-renderer';
|
|
9
10
|
export type { TagRendererProps } from './tag-renderer';
|
|
10
11
|
export { ElementSearchInput } from './element-search-input';
|
|
@@ -29,8 +29,8 @@ export declare const styles: {
|
|
|
29
29
|
padding: number;
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
|
-
interface ExpandableGroupProps extends PropsWithChildren {
|
|
32
|
+
export interface ExpandableGroupProps extends PropsWithChildren {
|
|
33
33
|
renderHeader: ReactNode;
|
|
34
34
|
}
|
|
35
|
-
declare function ExpandableGroup({ renderHeader, children }: ExpandableGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
declare function ExpandableGroup({ renderHeader, children }: Readonly<ExpandableGroupProps>): import("react/jsx-runtime").JSX.Element;
|
|
36
36
|
export default ExpandableGroup;
|
|
@@ -4,5 +4,6 @@
|
|
|
4
4
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
5
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
6
|
*/
|
|
7
|
-
export { default as MuiVirtualizedTable, generateMuiVirtualizedTableClass } from './MuiVirtualizedTable';
|
|
7
|
+
export { default as MuiVirtualizedTable, generateMuiVirtualizedTableClass, DEFAULT_CELL_PADDING, DEFAULT_HEADER_HEIGHT, DEFAULT_ROW_HEIGHT, } from './MuiVirtualizedTable';
|
|
8
|
+
export type { MuiVirtualizedTableProps, CustomColumnProps, RowProps } from './MuiVirtualizedTable';
|
|
8
9
|
export { KeyedColumnsRowIndexer, ChangeWays } from './KeyedColumnsRowIndexer';
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { default as default2, generateMuiVirtualizedTableClass } from "./MuiVirtualizedTable.js";
|
|
1
|
+
import { DEFAULT_CELL_PADDING, DEFAULT_HEADER_HEIGHT, DEFAULT_ROW_HEIGHT, default as default2, generateMuiVirtualizedTableClass } from "./MuiVirtualizedTable.js";
|
|
2
2
|
import { ChangeWays, KeyedColumnsRowIndexer } from "./KeyedColumnsRowIndexer.js";
|
|
3
3
|
export {
|
|
4
4
|
ChangeWays,
|
|
5
|
+
DEFAULT_CELL_PADDING,
|
|
6
|
+
DEFAULT_HEADER_HEIGHT,
|
|
7
|
+
DEFAULT_ROW_HEIGHT,
|
|
5
8
|
KeyedColumnsRowIndexer,
|
|
6
9
|
default2 as MuiVirtualizedTable,
|
|
7
10
|
generateMuiVirtualizedTableClass
|
|
@@ -3,7 +3,7 @@ import { FieldErrors, UseFormReturn } from 'react-hook-form';
|
|
|
3
3
|
import { default as React } from 'react';
|
|
4
4
|
|
|
5
5
|
import * as yup from 'yup';
|
|
6
|
-
interface
|
|
6
|
+
export interface CustomMuiDialogProps {
|
|
7
7
|
open: boolean;
|
|
8
8
|
formSchema: yup.AnySchema;
|
|
9
9
|
formMethods: UseFormReturn<any> | MergedFormContextProps;
|
|
@@ -19,5 +19,5 @@ interface ICustomMuiDialog {
|
|
|
19
19
|
language?: string;
|
|
20
20
|
confirmationMessageKey?: string;
|
|
21
21
|
}
|
|
22
|
-
declare function CustomMuiDialog({ open, formSchema, formMethods, onClose, onSave, isDataFetching, onValidationError, titleId, disabledSave, removeOptional, onCancel, children, language, confirmationMessageKey, }:
|
|
22
|
+
declare function CustomMuiDialog({ open, formSchema, formMethods, onClose, onSave, isDataFetching, onValidationError, titleId, disabledSave, removeOptional, onCancel, children, language, confirmationMessageKey, }: Readonly<CustomMuiDialogProps>): import("react/jsx-runtime").JSX.Element;
|
|
23
23
|
export default CustomMuiDialog;
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
5
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
6
|
*/
|
|
7
|
-
export interface
|
|
7
|
+
export interface DescriptionModificationDialogProps {
|
|
8
8
|
elementUuid: string;
|
|
9
9
|
description: string;
|
|
10
10
|
open: boolean;
|
|
11
11
|
onClose: () => void;
|
|
12
12
|
updateElement: (uuid: string, data: Record<string, string>) => Promise<void>;
|
|
13
13
|
}
|
|
14
|
-
declare function DescriptionModificationDialog({ elementUuid, description, open, onClose, updateElement, }:
|
|
14
|
+
declare function DescriptionModificationDialog({ elementUuid, description, open, onClose, updateElement, }: Readonly<DescriptionModificationDialogProps>): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export default DescriptionModificationDialog;
|
|
@@ -9,7 +9,7 @@ export type SelectionCopy = {
|
|
|
9
9
|
parentDirectoryUuid: UUID | null;
|
|
10
10
|
};
|
|
11
11
|
export declare const noSelectionForCopy: SelectionCopy;
|
|
12
|
-
interface CriteriaBasedFilterEditionDialogProps {
|
|
12
|
+
export interface CriteriaBasedFilterEditionDialogProps {
|
|
13
13
|
id: string;
|
|
14
14
|
name: string;
|
|
15
15
|
titleId: string;
|
|
@@ -23,5 +23,5 @@ interface CriteriaBasedFilterEditionDialogProps {
|
|
|
23
23
|
elementExists?: ElementExistsType;
|
|
24
24
|
language?: string;
|
|
25
25
|
}
|
|
26
|
-
declare function CriteriaBasedFilterEditionDialog({ id, name, titleId, open, onClose, broadcastChannel, getFilterById, selectionForCopy, setSelelectionForCopy, activeDirectory, elementExists, language, }: CriteriaBasedFilterEditionDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
declare function CriteriaBasedFilterEditionDialog({ id, name, titleId, open, onClose, broadcastChannel, getFilterById, selectionForCopy, setSelelectionForCopy, activeDirectory, elementExists, language, }: Readonly<CriteriaBasedFilterEditionDialogProps>): import("react/jsx-runtime").JSX.Element;
|
|
27
27
|
export default CriteriaBasedFilterEditionDialog;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ElementExistsType } from '../../../utils/ElementType';
|
|
2
2
|
import { UUID } from 'crypto';
|
|
3
3
|
|
|
4
|
-
interface ExplicitNamingFilterEditionDialogProps {
|
|
4
|
+
export interface ExplicitNamingFilterEditionDialogProps {
|
|
5
5
|
id: string;
|
|
6
6
|
name: string;
|
|
7
7
|
titleId: string;
|
|
@@ -15,5 +15,5 @@ interface ExplicitNamingFilterEditionDialogProps {
|
|
|
15
15
|
elementExists?: ElementExistsType;
|
|
16
16
|
language?: string;
|
|
17
17
|
}
|
|
18
|
-
declare function ExplicitNamingFilterEditionDialog({ id, name, titleId, open, onClose, broadcastChannel, selectionForCopy, setSelectionForCopy, getFilterById, activeDirectory, elementExists, language, }: ExplicitNamingFilterEditionDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare function ExplicitNamingFilterEditionDialog({ id, name, titleId, open, onClose, broadcastChannel, selectionForCopy, setSelectionForCopy, getFilterById, activeDirectory, elementExists, language, }: Readonly<ExplicitNamingFilterEditionDialogProps>): import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
export default ExplicitNamingFilterEditionDialog;
|
|
@@ -7,11 +7,10 @@ import CriteriaBasedFilterForm from "./criteria-based/criteria-based-filter-form
|
|
|
7
7
|
import ExplicitNamingFilterForm from "./explicit-naming/explicit-naming-filter-form.js";
|
|
8
8
|
import ExpertFilterForm from "./expert/expert-filter-form.js";
|
|
9
9
|
import { FilterType } from "./constants/filter-constants.js";
|
|
10
|
-
import ExpandableGroup from "../ExpandableGroup/expandable-group.js";
|
|
11
10
|
import RadioInput from "../inputs/react-hook-form/radio-input.js";
|
|
12
11
|
import { ElementType } from "../../utils/ElementType.js";
|
|
13
|
-
import ExpandingTextField from "../inputs/react-hook-form/ExpandingTextField.js";
|
|
14
12
|
import UniqueNameInput from "../inputs/react-hook-form/unique-name-input.js";
|
|
13
|
+
import DescriptionField from "../inputs/react-hook-form/description-field.js";
|
|
15
14
|
function FilterForm(props) {
|
|
16
15
|
const { sourceFilterForExplicitNamingConversion, creation, activeDirectory, elementExists } = props;
|
|
17
16
|
const { setValue } = useFormContext();
|
|
@@ -37,15 +36,7 @@ function FilterForm(props) {
|
|
|
37
36
|
}
|
|
38
37
|
) }),
|
|
39
38
|
creation && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
40
|
-
/* @__PURE__ */ jsx(Grid, { item: true, xs: 12, children: /* @__PURE__ */ jsx(
|
|
41
|
-
ExpandingTextField,
|
|
42
|
-
{
|
|
43
|
-
name: FieldConstants.DESCRIPTION,
|
|
44
|
-
label: "descriptionProperty",
|
|
45
|
-
minRows: 3,
|
|
46
|
-
rows: 5
|
|
47
|
-
}
|
|
48
|
-
) }) }),
|
|
39
|
+
/* @__PURE__ */ jsx(Grid, { item: true, xs: 12, children: /* @__PURE__ */ jsx(DescriptionField, {}) }),
|
|
49
40
|
!sourceFilterForExplicitNamingConversion && /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
|
|
50
41
|
RadioInput,
|
|
51
42
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TextInputProps } from './text-input';
|
|
2
2
|
import { TextFieldProps } from '@mui/material';
|
|
3
3
|
|
|
4
|
-
interface ExpandingTextFieldProps extends TextInputProps {
|
|
4
|
+
export interface ExpandingTextFieldProps extends TextInputProps {
|
|
5
5
|
name: string;
|
|
6
6
|
maxCharactersNumber?: number;
|
|
7
7
|
rows?: number;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
5
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
6
|
*/
|
|
7
|
-
interface CsvUploaderProps {
|
|
7
|
+
export interface CsvUploaderProps {
|
|
8
8
|
name: string;
|
|
9
9
|
onClose: () => void;
|
|
10
10
|
open: true;
|
|
@@ -16,5 +16,5 @@ interface CsvUploaderProps {
|
|
|
16
16
|
getDataFromCsv: any;
|
|
17
17
|
useFieldArrayOutput: any;
|
|
18
18
|
}
|
|
19
|
-
declare function CsvUploader({ name, onClose, open, title, fileHeaders, fileName, csvData, validateData, getDataFromCsv, useFieldArrayOutput, }: CsvUploaderProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare function CsvUploader({ name, onClose, open, title, fileHeaders, fileName, csvData, validateData, getDataFromCsv, useFieldArrayOutput, }: Readonly<CsvUploaderProps>): import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
export default CsvUploader;
|
|
@@ -0,0 +1,8 @@
|
|
|
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 function DescriptionField(): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default DescriptionField;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from "react";
|
|
3
|
+
import { FormattedMessage } from "react-intl";
|
|
4
|
+
import { Box, Button } from "@mui/material";
|
|
5
|
+
import AddIcon from "@mui/icons-material/Add";
|
|
6
|
+
import DeleteIcon from "@mui/icons-material/Delete";
|
|
7
|
+
import { useFormContext } from "react-hook-form";
|
|
8
|
+
import FieldConstants from "../../../utils/field-constants.js";
|
|
9
|
+
import ExpandingTextField from "./ExpandingTextField.js";
|
|
10
|
+
function DescriptionField() {
|
|
11
|
+
const [isDescriptionFieldVisible, setIsDescriptionFieldVisible] = useState(false);
|
|
12
|
+
const { setValue } = useFormContext();
|
|
13
|
+
const handleOpenDescription = () => {
|
|
14
|
+
setIsDescriptionFieldVisible(true);
|
|
15
|
+
};
|
|
16
|
+
const handleCloseDescription = () => {
|
|
17
|
+
setIsDescriptionFieldVisible(false);
|
|
18
|
+
setValue(FieldConstants.DESCRIPTION, "");
|
|
19
|
+
};
|
|
20
|
+
return /* @__PURE__ */ jsx(Box, { children: !isDescriptionFieldVisible ? /* @__PURE__ */ jsx(Button, { startIcon: /* @__PURE__ */ jsx(AddIcon, {}), onClick: handleOpenDescription, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "AddDescription" }) }) : /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "flex-start" }, children: [
|
|
21
|
+
/* @__PURE__ */ jsx(
|
|
22
|
+
ExpandingTextField,
|
|
23
|
+
{
|
|
24
|
+
name: FieldConstants.DESCRIPTION,
|
|
25
|
+
label: "descriptionProperty",
|
|
26
|
+
minRows: 3,
|
|
27
|
+
rows: 3,
|
|
28
|
+
sx: { flexGrow: 1 }
|
|
29
|
+
}
|
|
30
|
+
),
|
|
31
|
+
/* @__PURE__ */ jsx(
|
|
32
|
+
Button,
|
|
33
|
+
{
|
|
34
|
+
sx: {
|
|
35
|
+
alignSelf: "flex-end",
|
|
36
|
+
marginLeft: 1,
|
|
37
|
+
padding: 1,
|
|
38
|
+
marginBottom: 2
|
|
39
|
+
},
|
|
40
|
+
onClick: handleCloseDescription,
|
|
41
|
+
children: /* @__PURE__ */ jsx(DeleteIcon, {})
|
|
42
|
+
}
|
|
43
|
+
)
|
|
44
|
+
] }) });
|
|
45
|
+
}
|
|
46
|
+
export {
|
|
47
|
+
DescriptionField as default
|
|
48
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
|
|
3
|
-
interface FieldErrorAlertProps {
|
|
3
|
+
export interface FieldErrorAlertProps {
|
|
4
4
|
message: string | React.ReactNode;
|
|
5
5
|
}
|
|
6
|
-
declare function FieldErrorAlert({ message }: FieldErrorAlertProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function FieldErrorAlert({ message }: Readonly<FieldErrorAlertProps>): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export default FieldErrorAlert;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
export type MidFormErrorProps = {
|
|
4
4
|
message: string | ReactNode;
|
|
5
|
-
}
|
|
5
|
+
};
|
|
6
|
+
declare function MidFormError({ message }: Readonly<MidFormErrorProps>): import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
export default MidFormError;
|
|
@@ -4,12 +4,12 @@ type RadioOptions = Array<{
|
|
|
4
4
|
id: string;
|
|
5
5
|
label: string;
|
|
6
6
|
}>;
|
|
7
|
-
interface RadioInputProps {
|
|
7
|
+
export interface RadioInputProps {
|
|
8
8
|
name: string;
|
|
9
9
|
label?: string;
|
|
10
10
|
id?: string;
|
|
11
11
|
options: RadioOptions;
|
|
12
12
|
formProps?: Omit<RadioGroupProps, 'value'>;
|
|
13
13
|
}
|
|
14
|
-
declare function RadioInput({ name, label, id, options, formProps }: RadioInputProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function RadioInput({ name, label, id, options, formProps }: Readonly<RadioInputProps>): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export default RadioInput;
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
5
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
export type RawReadOnlyInputProps = {
|
|
8
8
|
name: string;
|
|
9
|
-
}
|
|
9
|
+
};
|
|
10
|
+
declare function RawReadOnlyInput({ name }: Readonly<RawReadOnlyInputProps>): any;
|
|
10
11
|
export default RawReadOnlyInput;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
interface CountryInputProps {
|
|
1
|
+
export interface CountryInputProps {
|
|
2
2
|
name: string;
|
|
3
3
|
label: string;
|
|
4
4
|
}
|
|
5
|
-
declare function CountriesInput({ name, label }: CountryInputProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function CountriesInput({ name, label }: Readonly<CountryInputProps>): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export default CountriesInput;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { SelectProps } from '@mui/material';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
export type MuiSelectInputProps = SelectProps & {
|
|
4
4
|
name: string;
|
|
5
5
|
options: {
|
|
6
6
|
id: string;
|
|
7
7
|
label: string;
|
|
8
8
|
}[];
|
|
9
|
-
}
|
|
10
|
-
declare function MuiSelectInput({ name, options, ...props }: MuiSelectInputProps
|
|
9
|
+
};
|
|
10
|
+
declare function MuiSelectInput({ name, options, ...props }: MuiSelectInputProps): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export default MuiSelectInput;
|
|
@@ -2,7 +2,7 @@ import { ElementExistsType, ElementType } from '../../../utils/ElementType';
|
|
|
2
2
|
import { UUID } from 'crypto';
|
|
3
3
|
import { TextFieldProps } from '@mui/material';
|
|
4
4
|
|
|
5
|
-
interface UniqueNameInputProps {
|
|
5
|
+
export interface UniqueNameInputProps {
|
|
6
6
|
name: string;
|
|
7
7
|
label?: string;
|
|
8
8
|
elementType: ElementType;
|
|
@@ -15,5 +15,5 @@ interface UniqueNameInputProps {
|
|
|
15
15
|
/**
|
|
16
16
|
* Input component that constantly check if the field's value is available or not
|
|
17
17
|
*/
|
|
18
|
-
declare function UniqueNameInput({ name, label, elementType, autoFocus, onManualChangeCallback, formProps, activeDirectory, elementExists, }: UniqueNameInputProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare function UniqueNameInput({ name, label, elementType, autoFocus, onManualChangeCallback, formProps, activeDirectory, elementExists, }: Readonly<UniqueNameInputProps>): import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
export default UniqueNameInput;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Field } from 'react-querybuilder';
|
|
2
2
|
|
|
3
|
-
interface CustomReactQueryBuilderProps {
|
|
3
|
+
export interface CustomReactQueryBuilderProps {
|
|
4
4
|
name: string;
|
|
5
5
|
fields: Field[];
|
|
6
6
|
}
|
|
7
|
-
declare function CustomReactQueryBuilder(props: CustomReactQueryBuilderProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function CustomReactQueryBuilder(props: Readonly<CustomReactQueryBuilderProps>): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export default CustomReactQueryBuilder;
|
|
@@ -4,10 +4,10 @@ type SelectOption = {
|
|
|
4
4
|
id: string;
|
|
5
5
|
label?: string;
|
|
6
6
|
};
|
|
7
|
-
interface SelectClearableProps extends Omit<AutocompleteProps<SelectOption, false, false, false>, 'value' | 'onChange' | 'renderInput'> {
|
|
7
|
+
export interface SelectClearableProps extends Omit<AutocompleteProps<SelectOption, false, false, false>, 'value' | 'onChange' | 'renderInput'> {
|
|
8
8
|
value: string | null;
|
|
9
9
|
onChange: (value: string | null) => void;
|
|
10
10
|
label?: string;
|
|
11
11
|
}
|
|
12
|
-
declare function SelectClearable(props: SelectClearableProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function SelectClearable(props: Readonly<SelectClearableProps>): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export default SelectClearable;
|
package/dist/index.d.ts
CHANGED
|
@@ -5,47 +5,62 @@
|
|
|
5
5
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
6
|
*/
|
|
7
7
|
export { TreeViewFinder } from './components/TreeViewFinder';
|
|
8
|
+
export type { TreeViewFinderProps, TreeViewFinderNodeProps } from './components/TreeViewFinder';
|
|
8
9
|
export { TopBar } from './components/TopBar';
|
|
10
|
+
export type { TopBarProps } from './components/TopBar';
|
|
9
11
|
export { default as AboutDialog } from './components/TopBar/AboutDialog';
|
|
10
|
-
export type { GridSuiteModule } from './components/TopBar/AboutDialog';
|
|
12
|
+
export type { AboutDialogProps, GridSuiteModule } from './components/TopBar/AboutDialog';
|
|
11
13
|
export { default as SnackbarProvider } from './components/SnackbarProvider';
|
|
12
14
|
export { default as AuthenticationRouter } from './components/AuthenticationRouter';
|
|
13
15
|
export type { AuthenticationRouterErrorState, AuthenticationRouterProps, UserManagerState, } from './components/AuthenticationRouter';
|
|
14
|
-
export { MuiVirtualizedTable } from './components/MuiVirtualizedTable';
|
|
15
|
-
export {
|
|
16
|
+
export { MuiVirtualizedTable, KeyedColumnsRowIndexer, ChangeWays, DEFAULT_CELL_PADDING, DEFAULT_HEADER_HEIGHT, DEFAULT_ROW_HEIGHT, } from './components/MuiVirtualizedTable';
|
|
17
|
+
export type { MuiVirtualizedTableProps, CustomColumnProps, RowProps } from './components/MuiVirtualizedTable';
|
|
16
18
|
export { default as ReportViewer } from './components/ReportViewer';
|
|
19
|
+
export type { ReportViewerProps } from './components/ReportViewer';
|
|
17
20
|
export { default as ReportViewerDialog } from './components/ReportViewerDialog';
|
|
21
|
+
export type { ReportViewerDialogProps } from './components/ReportViewerDialog';
|
|
18
22
|
export { default as OverflowableText } from './components/OverflowableText';
|
|
23
|
+
export type { OverflowableTextProps } from './components/OverflowableText';
|
|
19
24
|
export { ElementSearchDialog } from './components/ElementSearchDialog';
|
|
25
|
+
export type { ElementSearchDialogProps } from './components/ElementSearchDialog';
|
|
20
26
|
export { default as FlatParameters } from './components/FlatParameters';
|
|
27
|
+
export type { FlatParametersProps, Parameter } from './components/FlatParameters';
|
|
21
28
|
export { default as ExpandableGroup } from './components/ExpandableGroup';
|
|
29
|
+
export type { ExpandableGroupProps } from './components/ExpandableGroup';
|
|
22
30
|
export { default as MultipleSelectionDialog } from './components/MultipleSelectionDialog';
|
|
31
|
+
export type { MultipleSelectionDialogProps } from './components/MultipleSelectionDialog';
|
|
23
32
|
export { default as CustomMuiDialog } from './components/dialogs/custom-mui-dialog';
|
|
33
|
+
export type { CustomMuiDialogProps } from './components/dialogs/custom-mui-dialog';
|
|
24
34
|
export { default as DescriptionModificationDialog } from './components/dialogs/description-modification-dialog';
|
|
35
|
+
export type { DescriptionModificationDialogProps } from './components/dialogs/description-modification-dialog';
|
|
36
|
+
export { default as DescriptionField } from './components/inputs/react-hook-form/description-field';
|
|
25
37
|
export { default as ModifyElementSelection } from './components/dialogs/modify-element-selection';
|
|
38
|
+
export type { ModifyElementSelectionProps } from './components/dialogs/modify-element-selection';
|
|
26
39
|
export { default as CriteriaBasedForm } from './components/filter/criteria-based/criteria-based-form';
|
|
40
|
+
export type { CriteriaBasedFormProps } from './components/filter/criteria-based/criteria-based-form';
|
|
27
41
|
export { default as PopupConfirmationDialog } from './components/dialogs/popup-confirmation-dialog';
|
|
42
|
+
export type { PopupConfirmationDialogProps } from './components/dialogs/popup-confirmation-dialog';
|
|
28
43
|
export { default as BottomRightButtons } from './components/inputs/react-hook-form/ag-grid-table/bottom-right-buttons';
|
|
44
|
+
export type { BottomRightButtonsProps } from './components/inputs/react-hook-form/ag-grid-table/bottom-right-buttons';
|
|
29
45
|
export { default as CustomAgGridTable } from './components/inputs/react-hook-form/ag-grid-table/custom-ag-grid-table';
|
|
46
|
+
export type { CustomAgGridTableProps } from './components/inputs/react-hook-form/ag-grid-table/custom-ag-grid-table';
|
|
30
47
|
export { ROW_DRAGGING_SELECTION_COLUMN_DEF } from './components/inputs/react-hook-form/ag-grid-table/custom-ag-grid-table';
|
|
31
|
-
export type { Parameter } from './components/FlatParameters/FlatParameters';
|
|
32
48
|
export { Line, Generator, Load, Battery, SVC, DanglingLine, LCC, VSC, Hvdc, BusBar, TwoWindingTransfo, ThreeWindingTransfo, ShuntCompensator, VoltageLevel, Substation, noSelectionForCopy, } from './utils/equipment-types';
|
|
33
49
|
export { default as FieldConstants } from './utils/field-constants';
|
|
34
50
|
export { fields as EXPERT_FILTER_FIELDS } from './components/filter/expert/expert-filter-constants';
|
|
35
51
|
export { default as CustomReactQueryBuilder } from './components/inputs/react-query-builder/custom-react-query-builder';
|
|
52
|
+
export type { CustomReactQueryBuilderProps } from './components/inputs/react-query-builder/custom-react-query-builder';
|
|
36
53
|
export { EXPERT_FILTER_QUERY, rqbQuerySchemaValidator, getExpertFilterEmptyFormData, } from './components/filter/expert/expert-filter-form';
|
|
37
54
|
export { importExpertRules, exportExpertRules } from './components/filter/expert/expert-filter-utils';
|
|
38
55
|
export type { RuleTypeExport, RuleGroupTypeExport } from './components/filter/expert/expert-filter.type';
|
|
39
56
|
export { formatQuery } from 'react-querybuilder';
|
|
40
57
|
export { default as yup } from './utils/yup-config';
|
|
41
|
-
export type { TreeViewFinderNodeProps } from './components/TreeViewFinder/TreeViewFinder';
|
|
42
58
|
export { GRIDSUITE_DEFAULT_PRECISION, roundToPrecision, roundToDefaultPrecision, isBlankOrEmpty, unitToMicroUnit, microUnitToUnit, } from './utils/conversion-utils';
|
|
43
59
|
export { ElementType } from './utils/ElementType';
|
|
44
60
|
export type { ElementAttributes, Option, Equipment } from './utils/types';
|
|
45
61
|
export { EQUIPMENT_TYPE, EquipmentType, getEquipmentsInfosForSearchBar, equipmentStyles } from './utils/EquipmentType';
|
|
46
62
|
export { initializeAuthenticationDev, initializeAuthenticationProd, logout, dispatchUser, getPreLoginPath, } from './utils/AuthService';
|
|
47
63
|
export { default as getFileIcon } from './utils/ElementIcon';
|
|
48
|
-
export { DEFAULT_CELL_PADDING, DEFAULT_HEADER_HEIGHT, DEFAULT_ROW_HEIGHT, } from './components/MuiVirtualizedTable/MuiVirtualizedTable';
|
|
49
64
|
export { DARK_THEME, LIGHT_THEME, LANG_SYSTEM, LANG_ENGLISH, LANG_FRENCH } from './components/TopBar/TopBar';
|
|
50
65
|
export type { GsLang, GsLangUser, GsTheme } from './components/TopBar/TopBar';
|
|
51
66
|
export { USER, setLoggedUser, SIGNIN_CALLBACK_ERROR, setSignInCallbackError, UNAUTHORIZED_USER_INFO, LOGOUT_ERROR, USER_VALIDATION_ERROR, RESET_AUTHENTICATION_ROUTER_ERROR, SHOW_AUTH_INFO_LOGIN, } from './redux/authActions';
|
|
@@ -79,9 +94,9 @@ export { default as common_button_fr } from './components/translations/common-bu
|
|
|
79
94
|
export { default as directory_items_input_en } from './components/translations/directory-items-input-en';
|
|
80
95
|
export { default as directory_items_input_fr } from './components/translations/directory-items-input-fr';
|
|
81
96
|
export { TagRenderer, ElementSearchInput, useElementSearch } from './components/ElementSearchDialog';
|
|
82
|
-
export type { Paginated } from './components/ElementSearchDialog';
|
|
83
|
-
export type { TagRendererProps } from './components/ElementSearchDialog';
|
|
97
|
+
export type { Paginated, TagRendererProps } from './components/ElementSearchDialog';
|
|
84
98
|
export { EquipmentItem } from './components/ElementSearchDialog/equipment-item';
|
|
99
|
+
export type { EquipmentItemProps } from './components/ElementSearchDialog/equipment-item';
|
|
85
100
|
export { default as CardErrorBoundary } from './components/CardErrorBoundary';
|
|
86
101
|
export { default as useIntlRef } from './hooks/useIntlRef';
|
|
87
102
|
export { useSnackMessage } from './hooks/useSnackMessage';
|
|
@@ -89,44 +104,72 @@ export { default as useDebounce } from './hooks/useDebounce';
|
|
|
89
104
|
export { default as usePrevious } from './hooks/usePrevious';
|
|
90
105
|
export { default as useConfidentialityWarning } from './hooks/useConfidentialityWarning';
|
|
91
106
|
export { default as SelectClearable } from './components/inputs/select-clearable';
|
|
107
|
+
export type { SelectClearableProps } from './components/inputs/select-clearable';
|
|
92
108
|
export { default as useCustomFormContext } from './components/inputs/react-hook-form/provider/use-custom-form-context';
|
|
93
109
|
export { default as CustomFormProvider } from './components/inputs/react-hook-form/provider/custom-form-provider';
|
|
110
|
+
export type { MergedFormContextProps } from './components/inputs/react-hook-form/provider/custom-form-provider';
|
|
94
111
|
export { default as AutocompleteInput } from './components/inputs/react-hook-form/autocomplete-inputs/autocomplete-input';
|
|
112
|
+
export type { AutocompleteInputProps } from './components/inputs/react-hook-form/autocomplete-inputs/autocomplete-input';
|
|
95
113
|
export { default as TextInput } from './components/inputs/react-hook-form/text-input';
|
|
114
|
+
export type { TextInputProps } from './components/inputs/react-hook-form/text-input';
|
|
96
115
|
export { default as ExpandingTextField } from './components/inputs/react-hook-form/ExpandingTextField';
|
|
116
|
+
export type { ExpandingTextFieldProps } from './components/inputs/react-hook-form/ExpandingTextField';
|
|
97
117
|
export { default as RadioInput } from './components/inputs/react-hook-form/radio-input';
|
|
118
|
+
export type { RadioInputProps } from './components/inputs/react-hook-form/radio-input';
|
|
98
119
|
export { default as SliderInput } from './components/inputs/react-hook-form/slider-input';
|
|
120
|
+
export type { SliderInputProps } from './components/inputs/react-hook-form/slider-input';
|
|
99
121
|
export { default as FloatInput } from './components/inputs/react-hook-form/numbers/float-input';
|
|
122
|
+
export type { FloatInputProps } from './components/inputs/react-hook-form/numbers/float-input';
|
|
100
123
|
export { default as IntegerInput } from './components/inputs/react-hook-form/numbers/integer-input';
|
|
101
124
|
export { default as SelectInput } from './components/inputs/react-hook-form/select-inputs/select-input';
|
|
125
|
+
export type { SelectInputProps } from './components/inputs/react-hook-form/select-inputs/select-input';
|
|
102
126
|
export { default as CheckboxInput } from './components/inputs/react-hook-form/booleans/checkbox-input';
|
|
127
|
+
export type { CheckboxInputProps } from './components/inputs/react-hook-form/booleans/checkbox-input';
|
|
103
128
|
export { default as SwitchInput } from './components/inputs/react-hook-form/booleans/switch-input';
|
|
129
|
+
export type { SwitchInputProps } from './components/inputs/react-hook-form/booleans/switch-input';
|
|
104
130
|
export { default as ErrorInput } from './components/inputs/react-hook-form/error-management/error-input';
|
|
131
|
+
export type { ErrorInputProps } from './components/inputs/react-hook-form/error-management/error-input';
|
|
105
132
|
export { default as FieldErrorAlert } from './components/inputs/react-hook-form/error-management/field-error-alert';
|
|
133
|
+
export type { FieldErrorAlertProps } from './components/inputs/react-hook-form/error-management/field-error-alert';
|
|
106
134
|
export { default as MidFormError } from './components/inputs/react-hook-form/error-management/mid-form-error';
|
|
135
|
+
export type { MidFormErrorProps } from './components/inputs/react-hook-form/error-management/mid-form-error';
|
|
107
136
|
export { default as TextFieldWithAdornment } from './components/inputs/react-hook-form/utils/text-field-with-adornment';
|
|
137
|
+
export type { TextFieldWithAdornmentProps } from './components/inputs/react-hook-form/utils/text-field-with-adornment';
|
|
108
138
|
export { default as FieldLabel } from './components/inputs/react-hook-form/utils/field-label';
|
|
139
|
+
export type { FieldLabelProps } from './components/inputs/react-hook-form/utils/field-label';
|
|
109
140
|
export { default as SubmitButton } from './components/inputs/react-hook-form/utils/submit-button';
|
|
110
141
|
export { default as CancelButton } from './components/inputs/react-hook-form/utils/cancel-button';
|
|
111
142
|
export { genHelperPreviousValue, genHelperError, identity, isFieldRequired, gridItem, isFloatNumber, toFloatOrNullValue, } from './components/inputs/react-hook-form/utils/functions';
|
|
112
143
|
export { keyGenerator, areArrayElementsUnique, isObjectEmpty } from './utils/functions';
|
|
113
144
|
export { default as DirectoryItemsInput } from './components/inputs/react-hook-form/directory-items-input';
|
|
145
|
+
export type { DirectoryItemsInputProps } from './components/inputs/react-hook-form/directory-items-input';
|
|
114
146
|
export { default as DirectoryItemSelector } from './components/DirectoryItemSelector/directory-item-selector';
|
|
147
|
+
export type { DirectoryItemSelectorProps } from './components/DirectoryItemSelector/directory-item-selector';
|
|
115
148
|
export { default as CustomAGGrid } from './components/CustomAGGrid/custom-aggrid';
|
|
149
|
+
export type { CustomAGGridProps } from './components/CustomAGGrid/custom-aggrid';
|
|
116
150
|
export { default as RawReadOnlyInput } from './components/inputs/react-hook-form/raw-read-only-input';
|
|
151
|
+
export type { RawReadOnlyInputProps } from './components/inputs/react-hook-form/raw-read-only-input';
|
|
117
152
|
export { default as FilterCreationDialog } from './components/filter/filter-creation-dialog';
|
|
153
|
+
export type { FilterCreationDialogProps } from './components/filter/filter-creation-dialog';
|
|
118
154
|
export { default as ExpertFilterEditionDialog } from './components/filter/expert/expert-filter-edition-dialog';
|
|
155
|
+
export type { ExpertFilterEditionDialogProps } from './components/filter/expert/expert-filter-edition-dialog';
|
|
119
156
|
export { default as ExplicitNamingFilterEditionDialog } from './components/filter/explicit-naming/explicit-naming-filter-edition-dialog';
|
|
157
|
+
export type { ExplicitNamingFilterEditionDialogProps } from './components/filter/explicit-naming/explicit-naming-filter-edition-dialog';
|
|
120
158
|
export { default as CriteriaBasedFilterEditionDialog } from './components/filter/criteria-based/criteria-based-filter-edition-dialog';
|
|
159
|
+
export type { CriteriaBasedFilterEditionDialogProps } from './components/filter/criteria-based/criteria-based-filter-edition-dialog';
|
|
121
160
|
export { saveExplicitNamingFilter, saveCriteriaBasedFilter, saveExpertFilter, } from './components/filter/utils/filter-api';
|
|
122
161
|
export { default as RangeInput, DEFAULT_RANGE_VALUE, getRangeInputDataForm, getRangeInputSchema, } from './components/inputs/react-hook-form/range-input';
|
|
123
162
|
export { default as InputWithPopupConfirmation } from './components/inputs/react-hook-form/select-inputs/input-with-popup-confirmation';
|
|
124
163
|
export { default as MuiSelectInput } from './components/inputs/react-hook-form/select-inputs/mui-select-input';
|
|
164
|
+
export type { MuiSelectInputProps } from './components/inputs/react-hook-form/select-inputs/mui-select-input';
|
|
125
165
|
export { default as CountriesInput } from './components/inputs/react-hook-form/select-inputs/countries-input';
|
|
166
|
+
export type { CountryInputProps } from './components/inputs/react-hook-form/select-inputs/countries-input';
|
|
126
167
|
export { getSystemLanguage, getComputedLanguage, useLocalizedCountries } from './hooks/localized-countries-hook';
|
|
127
168
|
export { default as MultipleAutocompleteInput } from './components/inputs/react-hook-form/autocomplete-inputs/multiple-autocomplete-input';
|
|
128
169
|
export { default as CsvUploader } from './components/inputs/react-hook-form/ag-grid-table/csv-uploader/csv-uploader';
|
|
170
|
+
export type { CsvUploaderProps } from './components/inputs/react-hook-form/ag-grid-table/csv-uploader/csv-uploader';
|
|
129
171
|
export { default as UniqueNameInput } from './components/inputs/react-hook-form/unique-name-input';
|
|
172
|
+
export type { UniqueNameInputProps } from './components/inputs/react-hook-form/unique-name-input';
|
|
130
173
|
export { default as UserManagerMock } from './utils/UserManagerMock';
|
|
131
174
|
export { FILTER_EQUIPMENTS, CONTINGENCY_LIST_EQUIPMENTS } from './components/filter/utils/filter-form-utils';
|
|
132
175
|
export type { FormEquipment } from './components/filter/utils/filter-form-utils';
|
package/dist/index.js
CHANGED
|
@@ -21,15 +21,16 @@ import { default as default12 } from "./components/ExpandableGroup/expandable-gr
|
|
|
21
21
|
import { default as default13 } from "./components/MultipleSelectionDialog/MultipleSelectionDialog.js";
|
|
22
22
|
import { default as default14 } from "./components/dialogs/custom-mui-dialog.js";
|
|
23
23
|
import { default as default15 } from "./components/dialogs/description-modification-dialog.js";
|
|
24
|
-
import { default as default16 } from "./components/
|
|
25
|
-
import { default as default17 } from "./components/
|
|
26
|
-
import { default as default18 } from "./components/
|
|
27
|
-
import { default as default19 } from "./components/
|
|
28
|
-
import { default as default20
|
|
24
|
+
import { default as default16 } from "./components/inputs/react-hook-form/description-field.js";
|
|
25
|
+
import { default as default17 } from "./components/dialogs/modify-element-selection.js";
|
|
26
|
+
import { default as default18 } from "./components/filter/criteria-based/criteria-based-form.js";
|
|
27
|
+
import { default as default19 } from "./components/dialogs/popup-confirmation-dialog.js";
|
|
28
|
+
import { default as default20 } from "./components/inputs/react-hook-form/ag-grid-table/bottom-right-buttons.js";
|
|
29
|
+
import { default as default21, ROW_DRAGGING_SELECTION_COLUMN_DEF } from "./components/inputs/react-hook-form/ag-grid-table/custom-ag-grid-table.js";
|
|
29
30
|
import { Battery, BusBar, DanglingLine, Generator, Hvdc, LCC, Line, Load, SVC, ShuntCompensator, Substation, ThreeWindingTransfo, TwoWindingTransfo, VSC, VoltageLevel, noSelectionForCopy } from "./utils/equipment-types.js";
|
|
30
|
-
import { default as
|
|
31
|
+
import { default as default22 } from "./utils/field-constants.js";
|
|
31
32
|
import { fields } from "./components/filter/expert/expert-filter-constants.js";
|
|
32
|
-
import { default as
|
|
33
|
+
import { default as default23 } from "./components/inputs/react-query-builder/custom-react-query-builder.js";
|
|
33
34
|
import { EXPERT_FILTER_QUERY, getExpertFilterEmptyFormData, rqbQuerySchemaValidator } from "./components/filter/expert/expert-filter-form.js";
|
|
34
35
|
import { exportExpertRules, importExpertRules } from "./components/filter/expert/expert-filter-utils.js";
|
|
35
36
|
import { formatQuery } from "react-querybuilder";
|
|
@@ -38,83 +39,83 @@ import { GRIDSUITE_DEFAULT_PRECISION, isBlankOrEmpty, microUnitToUnit, roundToDe
|
|
|
38
39
|
import { ElementType } from "./utils/ElementType.js";
|
|
39
40
|
import { EQUIPMENT_TYPE, EquipmentType, equipmentStyles, getEquipmentsInfosForSearchBar } from "./utils/EquipmentType.js";
|
|
40
41
|
import { dispatchUser, getPreLoginPath, initializeAuthenticationDev, initializeAuthenticationProd, logout } from "./utils/AuthService.js";
|
|
41
|
-
import { default as
|
|
42
|
+
import { default as default24 } from "./utils/ElementIcon.js";
|
|
42
43
|
import { LOGOUT_ERROR, RESET_AUTHENTICATION_ROUTER_ERROR, SHOW_AUTH_INFO_LOGIN, SIGNIN_CALLBACK_ERROR, UNAUTHORIZED_USER_INFO, USER, USER_VALIDATION_ERROR, setLoggedUser, setSignInCallbackError } from "./redux/authActions.js";
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as
|
|
47
|
-
import { default as
|
|
48
|
-
import { default as
|
|
49
|
-
import { default as
|
|
50
|
-
import { default as
|
|
51
|
-
import { default as
|
|
52
|
-
import { default as
|
|
53
|
-
import { default as
|
|
54
|
-
import { default as
|
|
55
|
-
import { default as
|
|
56
|
-
import { default as
|
|
57
|
-
import { default as
|
|
58
|
-
import { default as
|
|
59
|
-
import { default as
|
|
60
|
-
import { default as
|
|
61
|
-
import { default as
|
|
62
|
-
import { default as
|
|
63
|
-
import { default as
|
|
64
|
-
import { default as
|
|
65
|
-
import { default as
|
|
66
|
-
import { default as
|
|
67
|
-
import { default as
|
|
68
|
-
import { default as
|
|
69
|
-
import { default as
|
|
70
|
-
import { default as
|
|
44
|
+
import { default as default25 } from "./components/translations/report-viewer-en.js";
|
|
45
|
+
import { default as default26 } from "./components/translations/report-viewer-fr.js";
|
|
46
|
+
import { default as default27 } from "./components/translations/login-en.js";
|
|
47
|
+
import { default as default28 } from "./components/translations/login-fr.js";
|
|
48
|
+
import { default as default29 } from "./components/translations/top-bar-en.js";
|
|
49
|
+
import { default as default30 } from "./components/translations/top-bar-fr.js";
|
|
50
|
+
import { default as default31 } from "./components/translations/table-en.js";
|
|
51
|
+
import { default as default32 } from "./components/translations/table-fr.js";
|
|
52
|
+
import { default as default33 } from "./components/translations/treeview-finder-en.js";
|
|
53
|
+
import { default as default34 } from "./components/translations/treeview-finder-fr.js";
|
|
54
|
+
import { default as default35 } from "./components/translations/element-search-en.js";
|
|
55
|
+
import { default as default36 } from "./components/translations/element-search-fr.js";
|
|
56
|
+
import { default as default37 } from "./components/translations/equipment-search-en.js";
|
|
57
|
+
import { default as default38 } from "./components/translations/equipment-search-fr.js";
|
|
58
|
+
import { default as default39 } from "./components/translations/filter-en.js";
|
|
59
|
+
import { default as default40 } from "./components/translations/filter-fr.js";
|
|
60
|
+
import { default as default41 } from "./components/translations/filter-expert-en.js";
|
|
61
|
+
import { default as default42 } from "./components/translations/filter-expert-fr.js";
|
|
62
|
+
import { default as default43 } from "./components/translations/card-error-boundary-en.js";
|
|
63
|
+
import { default as default44 } from "./components/translations/card-error-boundary-fr.js";
|
|
64
|
+
import { default as default45 } from "./components/translations/flat-parameters-en.js";
|
|
65
|
+
import { default as default46 } from "./components/translations/flat-parameters-fr.js";
|
|
66
|
+
import { default as default47 } from "./components/translations/multiple-selection-dialog-en.js";
|
|
67
|
+
import { default as default48 } from "./components/translations/multiple-selection-dialog-fr.js";
|
|
68
|
+
import { default as default49 } from "./components/translations/common-button-en.js";
|
|
69
|
+
import { default as default50 } from "./components/translations/common-button-fr.js";
|
|
70
|
+
import { default as default51 } from "./components/translations/directory-items-input-en.js";
|
|
71
|
+
import { default as default52 } from "./components/translations/directory-items-input-fr.js";
|
|
71
72
|
import { EquipmentItem } from "./components/ElementSearchDialog/equipment-item.js";
|
|
72
|
-
import { default as
|
|
73
|
-
import { default as
|
|
73
|
+
import { default as default53 } from "./components/CardErrorBoundary/card-error-boundary.js";
|
|
74
|
+
import { default as default54 } from "./hooks/useIntlRef.js";
|
|
74
75
|
import { useSnackMessage } from "./hooks/useSnackMessage.js";
|
|
75
|
-
import { default as
|
|
76
|
+
import { default as default55 } from "./hooks/useDebounce.js";
|
|
76
77
|
import { usePrevious } from "./hooks/usePrevious.js";
|
|
77
|
-
import { default as
|
|
78
|
-
import { default as
|
|
79
|
-
import { default as
|
|
80
|
-
import { default as
|
|
81
|
-
import { default as
|
|
82
|
-
import { default as
|
|
83
|
-
import { default as
|
|
84
|
-
import { default as
|
|
85
|
-
import { default as
|
|
86
|
-
import { default as
|
|
87
|
-
import { default as
|
|
88
|
-
import { default as
|
|
89
|
-
import { default as
|
|
90
|
-
import { default as
|
|
91
|
-
import { default as
|
|
92
|
-
import { default as
|
|
93
|
-
import { default as
|
|
94
|
-
import { default as
|
|
95
|
-
import { default as
|
|
96
|
-
import { default as
|
|
97
|
-
import { default as
|
|
78
|
+
import { default as default56 } from "./hooks/useConfidentialityWarning.js";
|
|
79
|
+
import { default as default57 } from "./components/inputs/select-clearable.js";
|
|
80
|
+
import { default as default58 } from "./components/inputs/react-hook-form/provider/use-custom-form-context.js";
|
|
81
|
+
import { default as default59 } from "./components/inputs/react-hook-form/provider/custom-form-provider.js";
|
|
82
|
+
import { default as default60 } from "./components/inputs/react-hook-form/autocomplete-inputs/autocomplete-input.js";
|
|
83
|
+
import { default as default61 } from "./components/inputs/react-hook-form/text-input.js";
|
|
84
|
+
import { default as default62 } from "./components/inputs/react-hook-form/ExpandingTextField.js";
|
|
85
|
+
import { default as default63 } from "./components/inputs/react-hook-form/radio-input.js";
|
|
86
|
+
import { default as default64 } from "./components/inputs/react-hook-form/slider-input.js";
|
|
87
|
+
import { default as default65 } from "./components/inputs/react-hook-form/numbers/float-input.js";
|
|
88
|
+
import { default as default66 } from "./components/inputs/react-hook-form/numbers/integer-input.js";
|
|
89
|
+
import { default as default67 } from "./components/inputs/react-hook-form/select-inputs/select-input.js";
|
|
90
|
+
import { default as default68 } from "./components/inputs/react-hook-form/booleans/checkbox-input.js";
|
|
91
|
+
import { default as default69 } from "./components/inputs/react-hook-form/booleans/switch-input.js";
|
|
92
|
+
import { default as default70 } from "./components/inputs/react-hook-form/error-management/error-input.js";
|
|
93
|
+
import { default as default71 } from "./components/inputs/react-hook-form/error-management/field-error-alert.js";
|
|
94
|
+
import { default as default72 } from "./components/inputs/react-hook-form/error-management/mid-form-error.js";
|
|
95
|
+
import { default as default73 } from "./components/inputs/react-hook-form/utils/text-field-with-adornment.js";
|
|
96
|
+
import { default as default74 } from "./components/inputs/react-hook-form/utils/field-label.js";
|
|
97
|
+
import { default as default75 } from "./components/inputs/react-hook-form/utils/submit-button.js";
|
|
98
|
+
import { default as default76 } from "./components/inputs/react-hook-form/utils/cancel-button.js";
|
|
98
99
|
import { genHelperError, genHelperPreviousValue, gridItem, identity, isFieldRequired, isFloatNumber, toFloatOrNullValue } from "./components/inputs/react-hook-form/utils/functions.js";
|
|
99
100
|
import { areArrayElementsUnique, isObjectEmpty, keyGenerator } from "./utils/functions.js";
|
|
100
|
-
import { default as
|
|
101
|
-
import { default as
|
|
102
|
-
import { default as
|
|
103
|
-
import { default as
|
|
104
|
-
import { default as
|
|
105
|
-
import { default as
|
|
106
|
-
import { default as
|
|
107
|
-
import { default as
|
|
101
|
+
import { default as default77 } from "./components/inputs/react-hook-form/directory-items-input.js";
|
|
102
|
+
import { default as default78 } from "./components/DirectoryItemSelector/directory-item-selector.js";
|
|
103
|
+
import { default as default79 } from "./components/CustomAGGrid/custom-aggrid.js";
|
|
104
|
+
import { default as default80 } from "./components/inputs/react-hook-form/raw-read-only-input.js";
|
|
105
|
+
import { default as default81 } from "./components/filter/filter-creation-dialog.js";
|
|
106
|
+
import { default as default82 } from "./components/filter/expert/expert-filter-edition-dialog.js";
|
|
107
|
+
import { default as default83 } from "./components/filter/explicit-naming/explicit-naming-filter-edition-dialog.js";
|
|
108
|
+
import { default as default84 } from "./components/filter/criteria-based/criteria-based-filter-edition-dialog.js";
|
|
108
109
|
import { saveCriteriaBasedFilter, saveExpertFilter, saveExplicitNamingFilter } from "./components/filter/utils/filter-api.js";
|
|
109
|
-
import { DEFAULT_RANGE_VALUE, default as
|
|
110
|
-
import { default as
|
|
111
|
-
import { default as
|
|
112
|
-
import { default as
|
|
110
|
+
import { DEFAULT_RANGE_VALUE, default as default85, getRangeInputDataForm, getRangeInputSchema } from "./components/inputs/react-hook-form/range-input.js";
|
|
111
|
+
import { default as default86 } from "./components/inputs/react-hook-form/select-inputs/input-with-popup-confirmation.js";
|
|
112
|
+
import { default as default87 } from "./components/inputs/react-hook-form/select-inputs/mui-select-input.js";
|
|
113
|
+
import { default as default88 } from "./components/inputs/react-hook-form/select-inputs/countries-input.js";
|
|
113
114
|
import { getComputedLanguage, getSystemLanguage, useLocalizedCountries } from "./hooks/localized-countries-hook.js";
|
|
114
|
-
import { default as
|
|
115
|
-
import { default as
|
|
116
|
-
import { default as
|
|
117
|
-
import { default as
|
|
115
|
+
import { default as default89 } from "./components/inputs/react-hook-form/autocomplete-inputs/multiple-autocomplete-input.js";
|
|
116
|
+
import { default as default90 } from "./components/inputs/react-hook-form/ag-grid-table/csv-uploader/csv-uploader.js";
|
|
117
|
+
import { default as default91 } from "./components/inputs/react-hook-form/unique-name-input.js";
|
|
118
|
+
import { default as default92 } from "./utils/UserManagerMock.js";
|
|
118
119
|
import { CONTINGENCY_LIST_EQUIPMENTS, FILTER_EQUIPMENTS } from "./components/filter/utils/filter-form-utils.js";
|
|
119
120
|
import { getCriteriaBasedFormData, getCriteriaBasedSchema } from "./components/filter/criteria-based/criteria-based-filter-utils.js";
|
|
120
121
|
import { setCommonStore } from "./redux/commonStore.js";
|
|
@@ -127,33 +128,34 @@ import * as yup from "yup";
|
|
|
127
128
|
export {
|
|
128
129
|
default4 as AboutDialog,
|
|
129
130
|
default6 as AuthenticationRouter,
|
|
130
|
-
|
|
131
|
+
default60 as AutocompleteInput,
|
|
131
132
|
Battery,
|
|
132
|
-
|
|
133
|
+
default20 as BottomRightButtons,
|
|
133
134
|
BusBar,
|
|
134
135
|
CONTINGENCY_LIST_EQUIPMENTS,
|
|
135
|
-
|
|
136
|
-
|
|
136
|
+
default76 as CancelButton,
|
|
137
|
+
default53 as CardErrorBoundary,
|
|
137
138
|
ChangeWays,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
139
|
+
default68 as CheckboxInput,
|
|
140
|
+
default88 as CountriesInput,
|
|
141
|
+
default84 as CriteriaBasedFilterEditionDialog,
|
|
142
|
+
default18 as CriteriaBasedForm,
|
|
143
|
+
default90 as CsvUploader,
|
|
144
|
+
default79 as CustomAGGrid,
|
|
145
|
+
default21 as CustomAgGridTable,
|
|
146
|
+
default59 as CustomFormProvider,
|
|
146
147
|
default14 as CustomMuiDialog,
|
|
147
|
-
|
|
148
|
+
default23 as CustomReactQueryBuilder,
|
|
148
149
|
DARK_THEME,
|
|
149
150
|
DEFAULT_CELL_PADDING,
|
|
150
151
|
DEFAULT_HEADER_HEIGHT,
|
|
151
152
|
DEFAULT_RANGE_VALUE,
|
|
152
153
|
DEFAULT_ROW_HEIGHT,
|
|
153
154
|
DanglingLine,
|
|
155
|
+
default16 as DescriptionField,
|
|
154
156
|
default15 as DescriptionModificationDialog,
|
|
155
|
-
|
|
156
|
-
|
|
157
|
+
default78 as DirectoryItemSelector,
|
|
158
|
+
default77 as DirectoryItemsInput,
|
|
157
159
|
EQUIPMENT_TYPE,
|
|
158
160
|
fields as EXPERT_FILTER_FIELDS,
|
|
159
161
|
EXPERT_FILTER_QUERY,
|
|
@@ -162,23 +164,23 @@ export {
|
|
|
162
164
|
ElementType,
|
|
163
165
|
EquipmentItem,
|
|
164
166
|
EquipmentType,
|
|
165
|
-
|
|
167
|
+
default70 as ErrorInput,
|
|
166
168
|
default12 as ExpandableGroup,
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
169
|
+
default62 as ExpandingTextField,
|
|
170
|
+
default82 as ExpertFilterEditionDialog,
|
|
171
|
+
default83 as ExplicitNamingFilterEditionDialog,
|
|
170
172
|
FILTER_EQUIPMENTS,
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
173
|
+
default22 as FieldConstants,
|
|
174
|
+
default71 as FieldErrorAlert,
|
|
175
|
+
default74 as FieldLabel,
|
|
176
|
+
default81 as FilterCreationDialog,
|
|
175
177
|
FlatParameters,
|
|
176
|
-
|
|
178
|
+
default65 as FloatInput,
|
|
177
179
|
GRIDSUITE_DEFAULT_PRECISION,
|
|
178
180
|
Generator,
|
|
179
181
|
Hvdc,
|
|
180
|
-
|
|
181
|
-
|
|
182
|
+
default86 as InputWithPopupConfirmation,
|
|
183
|
+
default66 as IntegerInput,
|
|
182
184
|
KeyedColumnsRowIndexer,
|
|
183
185
|
LANG_ENGLISH,
|
|
184
186
|
LANG_FRENCH,
|
|
@@ -188,35 +190,35 @@ export {
|
|
|
188
190
|
LOGOUT_ERROR,
|
|
189
191
|
Line,
|
|
190
192
|
Load,
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
193
|
+
default72 as MidFormError,
|
|
194
|
+
default17 as ModifyElementSelection,
|
|
195
|
+
default87 as MuiSelectInput,
|
|
194
196
|
default7 as MuiVirtualizedTable,
|
|
195
|
-
|
|
197
|
+
default89 as MultipleAutocompleteInput,
|
|
196
198
|
default13 as MultipleSelectionDialog,
|
|
197
199
|
OverflowableText,
|
|
198
|
-
|
|
200
|
+
default19 as PopupConfirmationDialog,
|
|
199
201
|
RESET_AUTHENTICATION_ROUTER_ERROR,
|
|
200
202
|
ROW_DRAGGING_SELECTION_COLUMN_DEF,
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
203
|
+
default63 as RadioInput,
|
|
204
|
+
default85 as RangeInput,
|
|
205
|
+
default80 as RawReadOnlyInput,
|
|
204
206
|
default8 as ReportViewer,
|
|
205
207
|
default9 as ReportViewerDialog,
|
|
206
208
|
SHOW_AUTH_INFO_LOGIN,
|
|
207
209
|
SIGNIN_CALLBACK_ERROR,
|
|
208
210
|
SVC,
|
|
209
|
-
|
|
210
|
-
|
|
211
|
+
default57 as SelectClearable,
|
|
212
|
+
default67 as SelectInput,
|
|
211
213
|
ShuntCompensator,
|
|
212
|
-
|
|
214
|
+
default64 as SliderInput,
|
|
213
215
|
default5 as SnackbarProvider,
|
|
214
|
-
|
|
216
|
+
default75 as SubmitButton,
|
|
215
217
|
Substation,
|
|
216
|
-
|
|
218
|
+
default69 as SwitchInput,
|
|
217
219
|
default10 as TagRenderer,
|
|
218
|
-
|
|
219
|
-
|
|
220
|
+
default73 as TextFieldWithAdornment,
|
|
221
|
+
default61 as TextInput,
|
|
220
222
|
ThreeWindingTransfo,
|
|
221
223
|
default3 as TopBar,
|
|
222
224
|
default2 as TreeViewFinder,
|
|
@@ -224,26 +226,26 @@ export {
|
|
|
224
226
|
UNAUTHORIZED_USER_INFO,
|
|
225
227
|
USER,
|
|
226
228
|
USER_VALIDATION_ERROR,
|
|
227
|
-
|
|
228
|
-
|
|
229
|
+
default91 as UniqueNameInput,
|
|
230
|
+
default92 as UserManagerMock,
|
|
229
231
|
VSC,
|
|
230
232
|
VoltageLevel,
|
|
231
233
|
areArrayElementsUnique,
|
|
232
234
|
backendFetch,
|
|
233
235
|
backendFetchJson,
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
236
|
+
default43 as card_error_boundary_en,
|
|
237
|
+
default44 as card_error_boundary_fr,
|
|
238
|
+
default49 as common_button_en,
|
|
239
|
+
default50 as common_button_fr,
|
|
238
240
|
createFilter,
|
|
239
|
-
|
|
240
|
-
|
|
241
|
+
default51 as directory_items_input_en,
|
|
242
|
+
default52 as directory_items_input_fr,
|
|
241
243
|
dispatchUser,
|
|
242
|
-
|
|
243
|
-
|
|
244
|
+
default35 as element_search_en,
|
|
245
|
+
default36 as element_search_fr,
|
|
244
246
|
equipmentStyles,
|
|
245
|
-
|
|
246
|
-
|
|
247
|
+
default37 as equipment_search_en,
|
|
248
|
+
default38 as equipment_search_fr,
|
|
247
249
|
exportExpertRules,
|
|
248
250
|
exportFilter,
|
|
249
251
|
fetchAppsMetadata,
|
|
@@ -255,12 +257,12 @@ export {
|
|
|
255
257
|
fetchFavoriteAndDefaultCountries,
|
|
256
258
|
fetchRootFolders,
|
|
257
259
|
fetchStudyMetadata,
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
260
|
+
default39 as filter_en,
|
|
261
|
+
default41 as filter_expert_en,
|
|
262
|
+
default42 as filter_expert_fr,
|
|
263
|
+
default40 as filter_fr,
|
|
264
|
+
default45 as flat_parameters_en,
|
|
265
|
+
default46 as flat_parameters_fr,
|
|
264
266
|
formatQuery,
|
|
265
267
|
genHelperError,
|
|
266
268
|
genHelperPreviousValue,
|
|
@@ -269,7 +271,7 @@ export {
|
|
|
269
271
|
getCriteriaBasedSchema,
|
|
270
272
|
getEquipmentsInfosForSearchBar,
|
|
271
273
|
getExpertFilterEmptyFormData,
|
|
272
|
-
|
|
274
|
+
default24 as getFileIcon,
|
|
273
275
|
getPreLoginPath,
|
|
274
276
|
getRangeInputDataForm,
|
|
275
277
|
getRangeInputSchema,
|
|
@@ -285,16 +287,16 @@ export {
|
|
|
285
287
|
isFloatNumber,
|
|
286
288
|
isObjectEmpty,
|
|
287
289
|
keyGenerator,
|
|
288
|
-
|
|
289
|
-
|
|
290
|
+
default27 as login_en,
|
|
291
|
+
default28 as login_fr,
|
|
290
292
|
logout,
|
|
291
293
|
mergeSx,
|
|
292
294
|
microUnitToUnit,
|
|
293
|
-
|
|
294
|
-
|
|
295
|
+
default47 as multiple_selection_dialog_en,
|
|
296
|
+
default48 as multiple_selection_dialog_fr,
|
|
295
297
|
noSelectionForCopy,
|
|
296
|
-
|
|
297
|
-
|
|
298
|
+
default25 as report_viewer_en,
|
|
299
|
+
default26 as report_viewer_fr,
|
|
298
300
|
roundToDefaultPrecision,
|
|
299
301
|
roundToPrecision,
|
|
300
302
|
rqbQuerySchemaValidator,
|
|
@@ -305,19 +307,19 @@ export {
|
|
|
305
307
|
setCommonStore,
|
|
306
308
|
setLoggedUser,
|
|
307
309
|
setSignInCallbackError,
|
|
308
|
-
|
|
309
|
-
|
|
310
|
+
default31 as table_en,
|
|
311
|
+
default32 as table_fr,
|
|
310
312
|
toFloatOrNullValue,
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
313
|
+
default29 as top_bar_en,
|
|
314
|
+
default30 as top_bar_fr,
|
|
315
|
+
default33 as treeview_finder_en,
|
|
316
|
+
default34 as treeview_finder_fr,
|
|
315
317
|
unitToMicroUnit,
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
318
|
+
default56 as useConfidentialityWarning,
|
|
319
|
+
default58 as useCustomFormContext,
|
|
320
|
+
default55 as useDebounce,
|
|
319
321
|
default11 as useElementSearch,
|
|
320
|
-
|
|
322
|
+
default54 as useIntlRef,
|
|
321
323
|
useLocalizedCountries,
|
|
322
324
|
usePrevious,
|
|
323
325
|
useSnackMessage,
|