@gridsuite/commons-ui 0.146.0 → 0.148.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/components/checkBoxList/CheckBoxListItem.js +1 -1
- package/dist/components/checkBoxList/CheckBoxListItemContent.js +1 -1
- package/dist/components/checkBoxList/DraggableCheckBoxListItem.js +1 -1
- package/dist/components/checkBoxList/DraggableCheckBoxListItemContent.js +1 -1
- package/dist/components/csvDownloader/use-csv-export.js +1 -1
- package/dist/components/customAGGrid/cell-renderers.js +1 -1
- package/dist/components/customAGGrid/separatorCellRenderer.js +1 -1
- package/dist/components/dialogs/elementSaveDialog/ElementSaveDialog.js +1 -1
- package/dist/components/directoryItemSelector/utils.js +2 -2
- package/dist/components/dnd-table/dnd-table-add-rows-dialog.js +1 -1
- package/dist/components/filter/HeaderFilterForm.js +1 -1
- package/dist/components/filter/expert/expertFilterConstants.js +1 -1
- package/dist/components/filter/utils/filterFormUtils.js +1 -1
- package/dist/components/index.js +4 -3
- package/dist/components/inputs/reactHookForm/DirectoryItemsInput.js +1 -1
- package/dist/components/inputs/reactHookForm/OverflowableChipWithHelperText.js +1 -1
- package/dist/components/inputs/reactHookForm/agGridTable/CustomAgGridTable.js +1 -1
- package/dist/components/inputs/reactHookForm/agGridTable/csvUploader/CsvUploader.js +1 -1
- package/dist/components/inputs/reactHookForm/chip-items-input.js +1 -1
- package/dist/components/inputs/reactQueryBuilder/CountryValueEditor.js +1 -1
- package/dist/components/inputs/reactQueryBuilder/ElementValueEditor.js +1 -1
- package/dist/components/inputs/reactQueryBuilder/OperatorSelector.js +1 -1
- package/dist/components/overflowableText/OverflowableText.js +1 -1
- package/dist/components/parameters/common/ProviderParam.js +1 -1
- package/dist/components/parameters/common/limitreductions/limit-reduction-table-cell.js +1 -1
- package/dist/components/parameters/common/limitreductions/limit-reductions-table-form.js +1 -1
- package/dist/components/parameters/common/name-element-editor/name-element-editor-form.js +1 -1
- package/dist/components/parameters/common/name-element-editor/name-element-editor-utils.js +1 -1
- package/dist/components/parameters/common/utils.js +2 -2
- package/dist/components/parameters/common/voltage-level-table/custom-voltage-level-table-cell.js +1 -1
- package/dist/components/parameters/common/widget/parameter-float.js +1 -1
- package/dist/components/parameters/common/widget/parameter-line-directory-items-input.js +1 -1
- package/dist/components/parameters/common/widget/parameter-line-slider.js +1 -1
- package/dist/components/parameters/index.js +4 -3
- package/dist/components/parameters/loadflow/load-flow-general-parameters.js +1 -1
- package/dist/components/parameters/loadflow/load-flow-parameter-field.js +1 -1
- package/dist/components/parameters/loadflow/load-flow-parameters-content.js +1 -1
- package/dist/components/parameters/loadflow/load-flow-parameters-dialog.js +1 -1
- package/dist/components/parameters/loadflow/load-flow-parameters-form.js +1 -1
- package/dist/components/parameters/loadflow/load-flow-parameters-header.js +1 -1
- package/dist/components/parameters/loadflow/load-flow-parameters-utils.js +1 -1
- package/dist/components/parameters/network-visualizations/constants.d.ts +0 -4
- package/dist/components/parameters/network-visualizations/constants.js +1 -20
- package/dist/components/parameters/network-visualizations/index.js +1 -2
- package/dist/components/parameters/network-visualizations/map-parameters.js +21 -4
- package/dist/components/parameters/network-visualizations/network-area-diagram-parameters.js +1 -1
- package/dist/components/parameters/network-visualizations/network-visualizations-form.js +1 -1
- package/dist/components/parameters/network-visualizations/single-line-diagram-parameters.js +1 -1
- package/dist/components/parameters/pcc-min/pcc-min-form-utils.js +1 -1
- package/dist/components/parameters/pcc-min/pcc-min-parameters-form.js +1 -1
- package/dist/components/parameters/pcc-min/pcc-min-parameters-inline.js +1 -1
- package/dist/components/parameters/pcc-min/use-pcc-min-parameters-form.js +1 -1
- package/dist/components/parameters/security-analysis/security-analysis-parameters-dialog.js +1 -1
- package/dist/components/parameters/security-analysis/security-analysis-parameters-form.js +1 -1
- package/dist/components/parameters/security-analysis/security-analysis-parameters-selector.js +1 -1
- package/dist/components/parameters/sensi/columns-definitions.js +2 -2
- package/dist/components/parameters/sensi/sensitivity-Flow-parameters.js +1 -1
- package/dist/components/parameters/sensi/sensitivity-analysis-parameters-dialog.js +1 -1
- package/dist/components/parameters/sensi/sensitivity-analysis-parameters-form.js +1 -1
- package/dist/components/parameters/sensi/table-cell.js +1 -1
- package/dist/components/parameters/sensi/utils.js +2 -2
- package/dist/components/parameters/short-circuit/constants.d.ts +2 -0
- package/dist/components/parameters/short-circuit/constants.js +4 -0
- package/dist/components/parameters/short-circuit/index.js +3 -1
- package/dist/components/parameters/short-circuit/short-circuit-fields.js +42 -8
- package/dist/components/parameters/short-circuit/short-circuit-icc-material-table-cell.d.ts +7 -0
- package/dist/components/parameters/short-circuit/short-circuit-icc-material-table-cell.js +48 -0
- package/dist/components/parameters/short-circuit/short-circuit-icc-material-table-columns-definition.d.ts +18 -0
- package/dist/components/parameters/short-circuit/short-circuit-icc-material-table-columns-definition.js +47 -0
- package/dist/components/parameters/short-circuit/short-circuit-icc-material-table-row.d.ts +8 -0
- package/dist/components/parameters/short-circuit/short-circuit-icc-material-table-row.js +27 -0
- package/dist/components/parameters/short-circuit/short-circuit-icc-material-table.d.ts +8 -0
- package/dist/components/parameters/short-circuit/short-circuit-icc-material-table.js +46 -0
- package/dist/components/parameters/short-circuit/short-circuit-parameters-form.js +1 -1
- package/dist/components/parameters/short-circuit/short-circuit-parameters-utils.d.ts +14 -7
- package/dist/components/parameters/short-circuit/short-circuit-parameters-utils.js +98 -10
- package/dist/components/parameters/short-circuit/short-circuit-parameters.type.d.ts +7 -0
- package/dist/components/parameters/short-circuit/use-short-circuit-parameters-form.js +15 -12
- package/dist/components/parameters/voltage-init/equipment-selection-parameters.js +1 -1
- package/dist/components/parameters/voltage-init/general-parameters.js +1 -1
- package/dist/components/parameters/voltage-init/voltage-init-form-utils.js +1 -1
- package/dist/components/parameters/voltage-init/voltage-init-parameters-form.js +1 -1
- package/dist/hooks/use-unique-name-validation.js +1 -1
- package/dist/hooks/useConfidentialityWarning.js +1 -1
- package/dist/hooks/useModificationLabelComputer.js +1 -1
- package/dist/index.js +7 -4
- package/dist/services/config.js +1 -1
- package/dist/services/utils.d.ts +2 -7
- package/dist/services/utils.js +7 -1
- package/dist/translations/en/parameters.d.ts +17 -0
- package/dist/translations/en/parameters.js +17 -0
- package/dist/translations/fr/parameters.d.ts +17 -0
- package/dist/translations/fr/parameters.js +17 -0
- package/dist/utils/error.js +3 -1
- package/dist/utils/index.js +3 -1
- package/dist/utils/types/CustomError.d.ts +13 -0
- package/dist/utils/types/CustomError.js +20 -0
- package/dist/utils/types/ProblemDetailError.d.ts +3 -12
- package/dist/utils/types/ProblemDetailError.js +4 -15
- package/dist/utils/types/index.d.ts +1 -0
- package/dist/utils/types/index.js +3 -1
- package/dist/utils/types/metadata.d.ts +4 -0
- package/package.json +1 -1
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
4
|
-
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
|
-
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
|
-
*/
|
|
7
|
-
export declare class ProblemDetailError extends Error {
|
|
1
|
+
import { CustomError } from './CustomError';
|
|
2
|
+
export declare class ProblemDetailError extends CustomError {
|
|
8
3
|
serverName: string;
|
|
9
4
|
timestamp: Date;
|
|
10
5
|
traceId: string;
|
|
11
|
-
status?:
|
|
12
|
-
businessErrorCode?: string;
|
|
13
|
-
businessErrorValues?: Record<string, unknown>;
|
|
14
|
-
constructor(message: string, serverName: string, timestamp: Date, traceId: string, status?: number, businessErrorCode?: string, businessErrorValues?: Record<string, unknown>);
|
|
6
|
+
constructor(message: string, serverName: string, timestamp: Date, traceId: string, status: number, businessErrorCode?: string, businessErrorValues?: Record<string, unknown>);
|
|
15
7
|
}
|
|
16
|
-
export declare function formatMessageValues(properties: Record<string, unknown>): Record<string, string>;
|
|
@@ -1,23 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import { CustomError } from "./CustomError.js";
|
|
2
|
+
class ProblemDetailError extends CustomError {
|
|
2
3
|
constructor(message, serverName, timestamp, traceId, status, businessErrorCode, businessErrorValues) {
|
|
3
|
-
super(message);
|
|
4
|
+
super(message, status, businessErrorCode, businessErrorValues);
|
|
4
5
|
this.serverName = serverName;
|
|
5
6
|
this.timestamp = timestamp;
|
|
6
7
|
this.traceId = traceId;
|
|
7
|
-
this.status = status;
|
|
8
|
-
this.businessErrorCode = businessErrorCode;
|
|
9
|
-
this.businessErrorValues = businessErrorValues;
|
|
10
8
|
}
|
|
11
9
|
}
|
|
12
|
-
function formatMessageValues(properties) {
|
|
13
|
-
return Object.fromEntries(
|
|
14
|
-
Object.entries(properties).map(([key, value]) => [
|
|
15
|
-
key,
|
|
16
|
-
typeof value === "object" && value !== null ? JSON.stringify(value) : String(value)
|
|
17
|
-
])
|
|
18
|
-
);
|
|
19
|
-
}
|
|
20
10
|
export {
|
|
21
|
-
ProblemDetailError
|
|
22
|
-
formatMessageValues
|
|
11
|
+
ProblemDetailError
|
|
23
12
|
};
|
|
@@ -4,6 +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
|
+
export * from './CustomError';
|
|
7
8
|
export * from './ProblemDetailError';
|
|
8
9
|
export * from './NetworkTimeoutError';
|
|
9
10
|
export * from './elementType';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CustomError, formatMessageValues } from "./CustomError.js";
|
|
2
|
+
import { ProblemDetailError } from "./ProblemDetailError.js";
|
|
2
3
|
import { NetworkTimeoutError } from "./NetworkTimeoutError.js";
|
|
3
4
|
import { ElementType } from "./elementType.js";
|
|
4
5
|
import { ALL_EQUIPMENTS, BASE_EQUIPMENTS, EquipmentType, ExtendedEquipmentType, HvdcType, OperatingStatus, SEARCH_EQUIPMENTS, TYPE_TAG_MAX_SIZE, VL_TAG_MAX_SIZE, equipmentStyles, getEquipmentsInfosForSearchBar } from "./equipmentType.js";
|
|
@@ -16,6 +17,7 @@ export {
|
|
|
16
17
|
BASE_EQUIPMENTS,
|
|
17
18
|
Battery,
|
|
18
19
|
BusBar,
|
|
20
|
+
CustomError,
|
|
19
21
|
DanglingLine,
|
|
20
22
|
DistributionType,
|
|
21
23
|
ElementType,
|
|
@@ -22,6 +22,10 @@ export type StudyMetadata = Metadata & {
|
|
|
22
22
|
defaultCountry?: string;
|
|
23
23
|
favoriteCountries?: string[];
|
|
24
24
|
substationPropertiesGlobalFilters?: Map<string, string[]>;
|
|
25
|
+
baseMapOptions?: {
|
|
26
|
+
id: string;
|
|
27
|
+
label: string;
|
|
28
|
+
}[];
|
|
25
29
|
};
|
|
26
30
|
type ThemeColors = Record<string, string>;
|
|
27
31
|
type SldAndNadColors = {
|