@gridsuite/commons-ui 0.186.0 → 0.188.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.
Files changed (80) hide show
  1. package/dist/components/index.js +16 -12
  2. package/dist/components/network-modifications/common/connectivity/connectivityForm.utils.d.ts +1 -1
  3. package/dist/components/network-modifications/index.d.ts +1 -1
  4. package/dist/components/network-modifications/index.js +44 -12
  5. package/dist/components/network-modifications/load/common/LoadDialogTabs.js +1 -1
  6. package/dist/components/network-modifications/voltageLevel/creation/VoltageLevelCreationForm.js +138 -0
  7. package/dist/components/network-modifications/{voltage-level → voltageLevel}/creation/index.d.ts +1 -2
  8. package/dist/components/network-modifications/voltageLevel/creation/index.js +57 -0
  9. package/dist/components/network-modifications/voltageLevel/creation/tabs/characteristicsTab/CharacteristicsTab.d.ts +1 -0
  10. package/dist/components/network-modifications/voltageLevel/creation/tabs/characteristicsTab/CharacteristicsTab.js +93 -0
  11. package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/characteristicsTab}/index.d.ts +1 -2
  12. package/dist/components/network-modifications/voltageLevel/creation/tabs/characteristicsTab/index.js +4 -0
  13. package/dist/components/network-modifications/voltageLevel/creation/tabs/index.d.ts +9 -0
  14. package/dist/components/network-modifications/voltageLevel/creation/tabs/index.js +10 -0
  15. package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/StructureTab.d.ts +1 -0
  16. package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/StructureTab.js +60 -0
  17. package/dist/components/network-modifications/{voltage-level/creation/coupling-omnibus → voltageLevel/creation/tabs/structureTab/couplingOmnibus}/CouplingOmnibusCreation.d.ts +1 -1
  18. package/dist/components/network-modifications/{voltage-level/creation/coupling-omnibus → voltageLevel/creation/tabs/structureTab/couplingOmnibus}/CouplingOmnibusCreation.js +6 -6
  19. package/dist/components/network-modifications/{voltage-level/creation/coupling-omnibus → voltageLevel/creation/tabs/structureTab/couplingOmnibus}/CouplingOmnibusForm.js +16 -16
  20. package/dist/components/network-modifications/{voltage-level/creation/coupling-omnibus → voltageLevel/creation/tabs/structureTab/couplingOmnibus}/index.d.ts +0 -1
  21. package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/couplingOmnibus/index.js +4 -0
  22. package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/index.d.ts +8 -0
  23. package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/index.js +6 -0
  24. package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/SwitchesBetweenSections.js +19 -17
  25. package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/creation/CreateSwitchesDialog.d.ts +1 -1
  26. package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/creation/CreateSwitchesDialog.js +16 -16
  27. package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/creation/CreateSwitchesDialogSubmitButton.d.ts +1 -1
  28. package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/creation/CreateSwitchesForm.js +16 -16
  29. package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/creation/createSwitchesDialog.utils.d.ts +1 -1
  30. package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/creation/createSwitchesDialog.utils.js +5 -5
  31. package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/index.d.ts +7 -0
  32. package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/index.js +0 -2
  33. package/dist/components/network-modifications/{voltage-level/creation/substation-creation → voltageLevel/creation/tabs/substationTab}/SubstationCreationSection.d.ts +1 -2
  34. package/dist/components/network-modifications/{voltage-level/creation/substation-creation → voltageLevel/creation/tabs/substationTab}/SubstationCreationSection.js +24 -26
  35. package/dist/components/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationTab.d.ts +5 -0
  36. package/dist/components/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationTab.js +81 -0
  37. package/dist/components/network-modifications/voltageLevel/creation/tabs/substationTab/index.d.ts +7 -0
  38. package/dist/components/network-modifications/voltageLevel/creation/tabs/substationTab/index.js +4 -0
  39. package/dist/components/network-modifications/voltageLevel/creation/voltageLevel.constants.d.ts +12 -0
  40. package/dist/components/network-modifications/voltageLevel/creation/voltageLevel.constants.js +9 -0
  41. package/dist/components/network-modifications/{voltage-level → voltageLevel}/creation/voltageLevelCreation.utils.d.ts +4 -0
  42. package/dist/components/network-modifications/{voltage-level → voltageLevel}/creation/voltageLevelCreation.utils.js +16 -0
  43. package/dist/components/network-modifications/voltageLevel/index.js +64 -0
  44. package/dist/index.js +59 -58
  45. package/dist/translations/en/networkModificationsEn.d.ts +6 -3
  46. package/dist/translations/en/networkModificationsEn.js +8 -4
  47. package/dist/translations/fr/networkModificationsFr.d.ts +6 -3
  48. package/dist/translations/fr/networkModificationsFr.js +9 -5
  49. package/dist/utils/index.js +2 -2
  50. package/dist/utils/types/dynamic-simulation.type.d.ts +9 -10
  51. package/dist/utils/types/dynamic-simulation.type.js +6 -6
  52. package/dist/utils/types/index.js +2 -2
  53. package/dist/utils/types/metadata.d.ts +1 -0
  54. package/package.json +1 -1
  55. package/dist/components/network-modifications/voltage-level/creation/VoltageLevelCreationForm.js +0 -174
  56. package/dist/components/network-modifications/voltage-level/creation/coupling-omnibus/index.js +0 -6
  57. package/dist/components/network-modifications/voltage-level/creation/index.js +0 -24
  58. package/dist/components/network-modifications/voltage-level/creation/substation-creation/SubstationAutocompleteAddButton.d.ts +0 -5
  59. package/dist/components/network-modifications/voltage-level/creation/substation-creation/SubstationAutocompleteAddButton.js +0 -79
  60. package/dist/components/network-modifications/voltage-level/index.js +0 -31
  61. /package/dist/components/network-modifications/{voltage-level → voltageLevel}/creation/VoltageLevelCreationForm.d.ts +0 -0
  62. /package/dist/components/network-modifications/{voltage-level/creation/coupling-omnibus → voltageLevel/creation/tabs/structureTab/couplingOmnibus}/CouplingOmnibusForm.d.ts +0 -0
  63. /package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/SwitchesBetweenSections.d.ts +0 -0
  64. /package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/creation/CreateSwitchesDialogSubmitButton.js +0 -0
  65. /package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/creation/CreateSwitchesForm.d.ts +0 -0
  66. /package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/creation/index.d.ts +0 -0
  67. /package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/creation/index.js +0 -0
  68. /package/dist/components/network-modifications/{voltage-level → voltageLevel}/creation/voltageLevelCreation.types.d.ts +0 -0
  69. /package/dist/components/network-modifications/{voltage-level → voltageLevel}/creation/voltageLevelCreation.types.js +0 -0
  70. /package/dist/components/network-modifications/{voltage-level → voltageLevel}/index.d.ts +0 -0
  71. /package/dist/components/network-modifications/{voltage-level → voltageLevel}/modification/VoltageLevelModificationForm.d.ts +0 -0
  72. /package/dist/components/network-modifications/{voltage-level → voltageLevel}/modification/VoltageLevelModificationForm.js +0 -0
  73. /package/dist/components/network-modifications/{voltage-level → voltageLevel}/modification/index.d.ts +0 -0
  74. /package/dist/components/network-modifications/{voltage-level → voltageLevel}/modification/index.js +0 -0
  75. /package/dist/components/network-modifications/{voltage-level → voltageLevel}/modification/voltageLevelModification.types.d.ts +0 -0
  76. /package/dist/components/network-modifications/{voltage-level → voltageLevel}/modification/voltageLevelModification.types.js +0 -0
  77. /package/dist/components/network-modifications/{voltage-level → voltageLevel}/modification/voltageLevelModification.utils.d.ts +0 -0
  78. /package/dist/components/network-modifications/{voltage-level → voltageLevel}/modification/voltageLevelModification.utils.js +0 -0
  79. /package/dist/components/network-modifications/{voltage-level → voltageLevel}/voltage-level.type.d.ts +0 -0
  80. /package/dist/components/network-modifications/{voltage-level → voltageLevel}/voltage-level.type.js +0 -0
@@ -0,0 +1,64 @@
1
+ import { SwitchesBetweenSections } from "./creation/tabs/structureTab/switchesBetweenSections/SwitchesBetweenSections.js";
2
+ import "react/jsx-runtime";
3
+ import "@mui/material";
4
+ import "react-hook-form";
5
+ import "react-intl";
6
+ import "../../overflowableText/OverflowableText.js";
7
+ import "../../../utils/conversionUtils.js";
8
+ import "../../../utils/types/equipmentType.js";
9
+ import "@mui/icons-material";
10
+ import "../../../utils/yupConfig.js";
11
+ import "react";
12
+ import "localized-countries";
13
+ import "localized-countries/data/fr";
14
+ import "localized-countries/data/en";
15
+ import "notistack";
16
+ import "../../inputs/reactHookForm/provider/CustomFormProvider.js";
17
+ import "yup";
18
+ import "../../treeViewFinder/TreeViewFinder.js";
19
+ import "../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
20
+ import "../../customAGGrid/customAggrid.js";
21
+ import "ag-grid-community";
22
+ import "react-papaparse";
23
+ import "react-csv-downloader";
24
+ import "../../inputs/reactHookForm/numbers/RangeInput.js";
25
+ import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
26
+ import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
27
+ import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
28
+ import "@material-symbols/svg-400/outlined/add_notes.svg?react";
29
+ import "../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
30
+ import "@react-querybuilder/material";
31
+ import "../../filter/expert/expertFilterConstants.js";
32
+ import "../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
33
+ import "uuid";
34
+ import "../../inputs/reactQueryBuilder/PropertyValueEditor.js";
35
+ import "react-querybuilder";
36
+ import "../common/properties/propertyUtils.js";
37
+ import { VoltageLevelCreationForm } from "./creation/VoltageLevelCreationForm.js";
38
+ import { SWITCH_TYPE, buildNewBusbarSections, getCreateSwitchesEmptyFormData, getCreateSwitchesValidationSchema, isAdditionalInformationTabError, isCharacteristicsTabError, isStructureTabError, isSubstationTabError, translateSwitchKinds, voltageLevelCreationDtoToForm, voltageLevelCreationEmptyFormData, voltageLevelCreationFormSchema, voltageLevelCreationFormToDto } from "./creation/voltageLevelCreation.utils.js";
39
+ import { SwitchKind } from "./creation/voltageLevelCreation.types.js";
40
+ import { VoltageLevelModificationForm } from "./modification/VoltageLevelModificationForm.js";
41
+ import { voltageLevelModificationDtoToForm, voltageLevelModificationEmptyFormData, voltageLevelModificationFormSchema, voltageLevelModificationFormToDto } from "./modification/voltageLevelModification.utils.js";
42
+ export {
43
+ SWITCH_TYPE,
44
+ SwitchKind,
45
+ SwitchesBetweenSections,
46
+ VoltageLevelCreationForm,
47
+ VoltageLevelModificationForm,
48
+ buildNewBusbarSections,
49
+ getCreateSwitchesEmptyFormData,
50
+ getCreateSwitchesValidationSchema,
51
+ isAdditionalInformationTabError,
52
+ isCharacteristicsTabError,
53
+ isStructureTabError,
54
+ isSubstationTabError,
55
+ translateSwitchKinds,
56
+ voltageLevelCreationDtoToForm,
57
+ voltageLevelCreationEmptyFormData,
58
+ voltageLevelCreationFormSchema,
59
+ voltageLevelCreationFormToDto,
60
+ voltageLevelModificationDtoToForm,
61
+ voltageLevelModificationEmptyFormData,
62
+ voltageLevelModificationFormSchema,
63
+ voltageLevelModificationFormToDto
64
+ };
package/dist/index.js CHANGED
@@ -214,59 +214,8 @@ import { SubstationCreationForm } from "./components/network-modifications/subst
214
214
  import { substationCreationDtoToForm, substationCreationEmptyFormData, substationCreationFormSchema, substationCreationFormToDto } from "./components/network-modifications/substation/creation/substationCreation.utils.js";
215
215
  import { SubstationModificationForm } from "./components/network-modifications/substation/modification/SubstationModificationForm.js";
216
216
  import { substationModificationDtoToForm, substationModificationEmptyFormData, substationModificationFormSchema, substationModificationFormToDto } from "./components/network-modifications/substation/modification/substationModification.utils.js";
217
- import { CreateSwitchesDialog } from "./components/network-modifications/voltage-level/creation/switches-between-sections/creation/CreateSwitchesDialog.js";
218
- import { SwitchesBetweenSections } from "./components/network-modifications/voltage-level/creation/switches-between-sections/SwitchesBetweenSections.js";
219
- import { CouplingOmnibusForm } from "./components/network-modifications/voltage-level/creation/coupling-omnibus/CouplingOmnibusForm.js";
220
- import { CouplingOmnibusCreation } from "./components/network-modifications/voltage-level/creation/coupling-omnibus/CouplingOmnibusCreation.js";
221
- import { VoltageLevelCreationForm } from "./components/network-modifications/voltage-level/creation/VoltageLevelCreationForm.js";
222
- import { SWITCH_TYPE, buildNewBusbarSections, getCreateSwitchesEmptyFormData, getCreateSwitchesValidationSchema, translateSwitchKinds, voltageLevelCreationDtoToForm, voltageLevelCreationEmptyFormData, voltageLevelCreationFormSchema, voltageLevelCreationFormToDto } from "./components/network-modifications/voltage-level/creation/voltageLevelCreation.utils.js";
223
- import { SwitchKind } from "./components/network-modifications/voltage-level/creation/voltageLevelCreation.types.js";
224
- import { VoltageLevelModificationForm } from "./components/network-modifications/voltage-level/modification/VoltageLevelModificationForm.js";
225
- import { voltageLevelModificationDtoToForm, voltageLevelModificationEmptyFormData, voltageLevelModificationFormSchema, voltageLevelModificationFormToDto } from "./components/network-modifications/voltage-level/modification/voltageLevelModification.utils.js";
226
- import { LoadDialogTab } from "./components/network-modifications/load/common/load.utils.js";
227
- import { LoadDialogTabs } from "./components/network-modifications/load/common/LoadDialogTabs.js";
228
- import { LoadDialogTabsContent } from "./components/network-modifications/load/common/LoadDialogTabsContent.js";
229
- import { LoadDialogHeader } from "./components/network-modifications/load/common/LoadDialogHeader.js";
230
- import { LoadForm } from "./components/network-modifications/load/common/LoadForm.js";
231
- import { loadCreationDtoToForm, loadCreationEmptyFormData, loadCreationFormSchema, loadCreationFormToDto } from "./components/network-modifications/load/creation/loadCreation.utils.js";
232
- import { loadModificationDtoToForm, loadModificationEmptyFormData, loadModificationFormSchema, loadModificationFormToDto } from "./components/network-modifications/load/modification/loadModification.utils.js";
233
- import { ByFilterDeletionForm } from "./components/network-modifications/by-filter/deletion/ByFilterDeletionForm.js";
234
- import { EQUIPMENT_TYPE_ORDER, byFilterDeletionDtoToForm, byFilterDeletionFormSchema, byFilterDeletionFormToDto, emptyFormData } from "./components/network-modifications/by-filter/deletion/byFilterDeletion.utils.js";
235
- import { BuildStatusChip } from "./components/node/build-status-chip.js";
236
- import { BuildStatus } from "./components/node/constant.js";
237
- import { useStateBoolean } from "./hooks/customStates/useStateBoolean.js";
238
- import { useStateNumber } from "./hooks/customStates/useStateNumber.js";
239
- import { useModificationLabelComputer } from "./hooks/useModificationLabelComputer.js";
240
- import { useConfidentialityWarning } from "./hooks/useConfidentialityWarning.js";
241
- import { useDebounce } from "./hooks/useDebounce.js";
242
- import { useIntlRef } from "./hooks/useIntlRef.js";
243
- import { getComputedLanguage, getSystemLanguage, useLocalizedCountries } from "./hooks/useLocalizedCountries.js";
244
- import { usePredefinedProperties } from "./hooks/usePredefinedProperties.js";
245
- import { usePrevious } from "./hooks/usePrevious.js";
246
- import { useSnackMessage } from "./hooks/useSnackMessage.js";
247
- import { useFormatLabelWithUnit } from "./hooks/useFormatLabelWithUnit.js";
248
- import { useSelectAppearance } from "./hooks/useSelectAppearance.js";
249
- import { OptionalServicesStatus, useParametersBackend } from "./hooks/use-parameters-backend.js";
250
- import { useCreateRowData } from "./hooks/use-create-row-data.js";
251
- import { useGetLabelEquipmentTypes } from "./hooks/useGetLabelEquipmentTypes.js";
252
- import { LOGOUT_ERROR, RESET_AUTHENTICATION_ROUTER_ERROR, SHOW_AUTH_INFO_LOGIN, SIGNIN_CALLBACK_ERROR, UNAUTHORIZED_USER_INFO, USER, USER_VALIDATION_ERROR, resetAuthenticationRouterError, setLoggedUser, setLogoutError, setShowAuthenticationRouterLogin, setSignInCallbackError, setUnauthorizedUserInfo, setUserValidationError } from "./redux/actions/authActions.js";
253
- import { getUserToken, setCommonStore } from "./redux/commonStore.js";
254
- import { fetchAppsMetadata, fetchBaseVoltages, fetchDefaultCountry, fetchEnv, fetchFavoriteAndDefaultCountries, fetchStudyMetadata, isExploreMetadata, isStudyMetadata } from "./services/appsMetadata.js";
255
- import { fetchConfigParameter, fetchConfigParameters, getAppName, updateConfigParameter } from "./services/config.js";
256
- import { PermissionType, elementAlreadyExists, fetchDirectoryContent, fetchDirectoryElementPath, fetchRootFolders, hasElementPermission } from "./services/directory.js";
257
- import { createFilter, createParameter, fetchElementsInfos, saveFilter, updateParameter } from "./services/explore.js";
258
- import { PREFIX_STUDY_QUERIES, fetchLoadFlowParameters, getLoadFlowDefaultLimitReductions, getLoadFlowProviders, getLoadFlowSpecificParametersDescription, getLoadFlowUrl, setLoadFlowParameters } from "./services/loadflow.js";
259
- import { fetchPccMinParameters, getPccMinStudyParameters, updatePccMinParameters } from "./services/pcc-min.js";
260
- import { fetchSecurityAnalysisParameters, fetchSecurityAnalysisProviders, getSecurityAnalysisDefaultLimitReductions, getSecurityAnalysisParameters, getStudyUrl, setSecurityAnalysisParameters, updateSecurityAnalysisParameters } from "./services/security-analysis.js";
261
- import { exportFilter, getAvailableComponentLibraries, getStudyNetworkVisualizationsParameters, getStudyShortCircuitParameters, setStudyNetworkVisualizationParameters, updateVoltageInitParameters } from "./services/study.js";
262
- import { getNetworkVisualizationsParameters } from "./services/study-config.js";
263
- import { fetchCurrentAnnouncement, fetchUserDetails } from "./services/userAdmin.js";
264
- import { DEFAULT_TIMEOUT_MS, IGNORE_SIGNAL, backendFetch, backendFetchFile, backendFetchJson, backendFetchText, getRequestParamFromList, handleNotOkResponse, parseError, safeEncodeURIComponent } from "./services/utils.js";
265
- import { getVoltageInitParameters, getVoltageInitUrl } from "./services/voltage-init.js";
266
- import { fetchShortCircuitParameters, getShortCircuitSpecificParametersDescription, updateShortCircuitParameters } from "./services/short-circuit-analysis.js";
267
- import { fetchBusBarSectionsForNewCoupler, fetchNetworkModification, updateModification } from "./services/networkModification.js";
268
- import { fetchDynamicMarginCalculationParameters, fetchDynamicMarginCalculationProviders, updateDynamicMarginCalculationParameters } from "./services/dynamic-margin-calculation.js";
269
- import { fetchContingencyAndFiltersLists, fetchDynamicSecurityAnalysisProviders } from "./services/dynamic-security-analysis.js";
217
+ import { SwitchesBetweenSections } from "./components/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/SwitchesBetweenSections.js";
218
+ import "react-hook-form";
270
219
  import { equalsArray } from "./utils/algos.js";
271
220
  import { ActivePowerAdornment, AmpereAdornment, KiloAmpereAdornment, KilometerAdornment, MVAPowerAdornment, MicroSusceptanceAdornment, OhmAdornment, PercentageAdornment, ReactivePowerAdornment, SusceptanceAdornment, VoltageAdornment } from "./utils/constants/adornments.js";
272
221
  import { FetchStatus } from "./utils/constants/fetchStatus.js";
@@ -296,13 +245,64 @@ import { AnnouncementSeverity, ArrayAction } from "./utils/types/types.js";
296
245
  import { MODIFICATION_TYPES, ModificationType } from "./utils/types/modificationType.js";
297
246
  import { FieldType } from "./utils/types/fieldType.js";
298
247
  import { ParameterType } from "./utils/types/parameters.type.js";
299
- import { SolverTypeInfos } from "./utils/types/dynamic-simulation.type.js";
248
+ import { SolverType } from "./utils/types/dynamic-simulation.type.js";
300
249
  import { DistributionType, SensitivityType } from "./utils/types/sensitivity-analysis.type.js";
301
250
  import { CalculationType, LoadModelsRule } from "./utils/types/dynamic-margin-calculation.type.js";
302
251
  import { OperationType } from "./utils/types/network-modification-types.js";
303
252
  import { areIdsEqual, getIdOrSelf, getIdOrValue, getLabelOrValue, getObjectId, notNull, notUndefined, parseIntData, removeNullFields, richTypeEquals, sanitizeString } from "./utils/ts-utils.js";
304
253
  import { toNumber, validateValueIsANumber } from "./utils/validation-functions.js";
305
254
  import "./utils/yupConfig.js";
255
+ import "react";
256
+ import { fetchAppsMetadata, fetchBaseVoltages, fetchDefaultCountry, fetchEnv, fetchFavoriteAndDefaultCountries, fetchStudyMetadata, isExploreMetadata, isStudyMetadata } from "./services/appsMetadata.js";
257
+ import { fetchConfigParameter, fetchConfigParameters, getAppName, updateConfigParameter } from "./services/config.js";
258
+ import { PermissionType, elementAlreadyExists, fetchDirectoryContent, fetchDirectoryElementPath, fetchRootFolders, hasElementPermission } from "./services/directory.js";
259
+ import { createFilter, createParameter, fetchElementsInfos, saveFilter, updateParameter } from "./services/explore.js";
260
+ import { PREFIX_STUDY_QUERIES, fetchLoadFlowParameters, getLoadFlowDefaultLimitReductions, getLoadFlowProviders, getLoadFlowSpecificParametersDescription, getLoadFlowUrl, setLoadFlowParameters } from "./services/loadflow.js";
261
+ import { fetchPccMinParameters, getPccMinStudyParameters, updatePccMinParameters } from "./services/pcc-min.js";
262
+ import { fetchSecurityAnalysisParameters, fetchSecurityAnalysisProviders, getSecurityAnalysisDefaultLimitReductions, getSecurityAnalysisParameters, getStudyUrl, setSecurityAnalysisParameters, updateSecurityAnalysisParameters } from "./services/security-analysis.js";
263
+ import { exportFilter, getAvailableComponentLibraries, getStudyNetworkVisualizationsParameters, getStudyShortCircuitParameters, setStudyNetworkVisualizationParameters, updateVoltageInitParameters } from "./services/study.js";
264
+ import { getNetworkVisualizationsParameters } from "./services/study-config.js";
265
+ import { fetchCurrentAnnouncement, fetchUserDetails } from "./services/userAdmin.js";
266
+ import { DEFAULT_TIMEOUT_MS, IGNORE_SIGNAL, backendFetch, backendFetchFile, backendFetchJson, backendFetchText, getRequestParamFromList, handleNotOkResponse, parseError, safeEncodeURIComponent } from "./services/utils.js";
267
+ import { getVoltageInitParameters, getVoltageInitUrl } from "./services/voltage-init.js";
268
+ import { fetchShortCircuitParameters, getShortCircuitSpecificParametersDescription, updateShortCircuitParameters } from "./services/short-circuit-analysis.js";
269
+ import { fetchBusBarSectionsForNewCoupler, fetchNetworkModification, updateModification } from "./services/networkModification.js";
270
+ import { fetchDynamicMarginCalculationParameters, fetchDynamicMarginCalculationProviders, updateDynamicMarginCalculationParameters } from "./services/dynamic-margin-calculation.js";
271
+ import { fetchContingencyAndFiltersLists, fetchDynamicSecurityAnalysisProviders } from "./services/dynamic-security-analysis.js";
272
+ import "@mui/icons-material";
273
+ import { VoltageLevelCreationForm } from "./components/network-modifications/voltageLevel/creation/VoltageLevelCreationForm.js";
274
+ import { SWITCH_TYPE, buildNewBusbarSections, getCreateSwitchesEmptyFormData, getCreateSwitchesValidationSchema, isAdditionalInformationTabError, isCharacteristicsTabError, isStructureTabError, isSubstationTabError, translateSwitchKinds, voltageLevelCreationDtoToForm, voltageLevelCreationEmptyFormData, voltageLevelCreationFormSchema, voltageLevelCreationFormToDto } from "./components/network-modifications/voltageLevel/creation/voltageLevelCreation.utils.js";
275
+ import { SwitchKind } from "./components/network-modifications/voltageLevel/creation/voltageLevelCreation.types.js";
276
+ import { VoltageLevelModificationForm } from "./components/network-modifications/voltageLevel/modification/VoltageLevelModificationForm.js";
277
+ import { voltageLevelModificationDtoToForm, voltageLevelModificationEmptyFormData, voltageLevelModificationFormSchema, voltageLevelModificationFormToDto } from "./components/network-modifications/voltageLevel/modification/voltageLevelModification.utils.js";
278
+ import { LoadDialogTab } from "./components/network-modifications/load/common/load.utils.js";
279
+ import { LoadDialogTabs } from "./components/network-modifications/load/common/LoadDialogTabs.js";
280
+ import { LoadDialogTabsContent } from "./components/network-modifications/load/common/LoadDialogTabsContent.js";
281
+ import { LoadDialogHeader } from "./components/network-modifications/load/common/LoadDialogHeader.js";
282
+ import { LoadForm } from "./components/network-modifications/load/common/LoadForm.js";
283
+ import { loadCreationDtoToForm, loadCreationEmptyFormData, loadCreationFormSchema, loadCreationFormToDto } from "./components/network-modifications/load/creation/loadCreation.utils.js";
284
+ import { loadModificationDtoToForm, loadModificationEmptyFormData, loadModificationFormSchema, loadModificationFormToDto } from "./components/network-modifications/load/modification/loadModification.utils.js";
285
+ import { ByFilterDeletionForm } from "./components/network-modifications/by-filter/deletion/ByFilterDeletionForm.js";
286
+ import { EQUIPMENT_TYPE_ORDER, byFilterDeletionDtoToForm, byFilterDeletionFormSchema, byFilterDeletionFormToDto, emptyFormData } from "./components/network-modifications/by-filter/deletion/byFilterDeletion.utils.js";
287
+ import { BuildStatusChip } from "./components/node/build-status-chip.js";
288
+ import { BuildStatus } from "./components/node/constant.js";
289
+ import { useStateBoolean } from "./hooks/customStates/useStateBoolean.js";
290
+ import { useStateNumber } from "./hooks/customStates/useStateNumber.js";
291
+ import { useModificationLabelComputer } from "./hooks/useModificationLabelComputer.js";
292
+ import { useConfidentialityWarning } from "./hooks/useConfidentialityWarning.js";
293
+ import { useDebounce } from "./hooks/useDebounce.js";
294
+ import { useIntlRef } from "./hooks/useIntlRef.js";
295
+ import { getComputedLanguage, getSystemLanguage, useLocalizedCountries } from "./hooks/useLocalizedCountries.js";
296
+ import { usePredefinedProperties } from "./hooks/usePredefinedProperties.js";
297
+ import { usePrevious } from "./hooks/usePrevious.js";
298
+ import { useSnackMessage } from "./hooks/useSnackMessage.js";
299
+ import { useFormatLabelWithUnit } from "./hooks/useFormatLabelWithUnit.js";
300
+ import { useSelectAppearance } from "./hooks/useSelectAppearance.js";
301
+ import { OptionalServicesStatus, useParametersBackend } from "./hooks/use-parameters-backend.js";
302
+ import { useCreateRowData } from "./hooks/use-create-row-data.js";
303
+ import { useGetLabelEquipmentTypes } from "./hooks/useGetLabelEquipmentTypes.js";
304
+ import { LOGOUT_ERROR, RESET_AUTHENTICATION_ROUTER_ERROR, SHOW_AUTH_INFO_LOGIN, SIGNIN_CALLBACK_ERROR, UNAUTHORIZED_USER_INFO, USER, USER_VALIDATION_ERROR, resetAuthenticationRouterError, setLoggedUser, setLogoutError, setShowAuthenticationRouterLogin, setSignInCallbackError, setUnauthorizedUserInfo, setUserValidationError } from "./redux/actions/authActions.js";
305
+ import { getUserToken, setCommonStore } from "./redux/commonStore.js";
306
306
  import { cardErrorBoundaryEn } from "./translations/en/cardErrorBoundaryEn.js";
307
307
  import { businessErrorsEn } from "./translations/en/businessErrorsEn.js";
308
308
  import { commonButtonEn } from "./translations/en/commonButtonEn.js";
@@ -438,10 +438,7 @@ export {
438
438
  CountriesInput,
439
439
  CountrySelectionInput,
440
440
  CountryValueEditor,
441
- CouplingOmnibusCreation,
442
- CouplingOmnibusForm,
443
441
  CreateParameterDialog,
444
- CreateSwitchesDialog,
445
442
  CsvExport,
446
443
  CsvUploader,
447
444
  CustomAGGrid,
@@ -786,7 +783,7 @@ export {
786
783
  SilentRenewCallbackHandler,
787
784
  SliderInput,
788
785
  SnackbarProvider,
789
- SolverTypeInfos,
786
+ SolverType,
790
787
  SubmitButton,
791
788
  Substation,
792
789
  SubstationCreationForm,
@@ -1055,14 +1052,18 @@ export {
1055
1052
  inputsFr,
1056
1053
  intlInitialVoltageProfileMode,
1057
1054
  intlPredefinedParametersOptions,
1055
+ isAdditionalInformationTabError,
1058
1056
  isBlankOrEmpty,
1057
+ isCharacteristicsTabError,
1059
1058
  isEmpty,
1060
1059
  isExploreMetadata,
1061
1060
  isFieldRequired,
1062
1061
  isFloatNumber,
1063
1062
  isIntegerNumber,
1064
1063
  isObjectEmpty,
1064
+ isStructureTabError,
1065
1065
  isStudyMetadata,
1066
+ isSubstationTabError,
1066
1067
  isValidComputingType,
1067
1068
  italicFontTextField,
1068
1069
  keyGenerator,
@@ -120,8 +120,6 @@ export declare const networkModificationsEn: {
120
120
  YupNotTypeNumber: string;
121
121
  CreateLoad: string;
122
122
  loadType: string;
123
- ConnectivityTab: string;
124
- LineCharacteristicsTab: string;
125
123
  VOLTAGE_LEVEL: string;
126
124
  BusBarBus: string;
127
125
  ConnectionName: string;
@@ -136,7 +134,6 @@ export declare const networkModificationsEn: {
136
134
  NodeNotBuildPositionMessage: string;
137
135
  NoVoltageLevelPositionMessage: string;
138
136
  ModifyLoad: string;
139
- StateEstimationTab: string;
140
137
  MeasurementsSection: string;
141
138
  ValidMeasurement: string;
142
139
  InvalidMeasurement: string;
@@ -145,4 +142,10 @@ export declare const networkModificationsEn: {
145
142
  LCCConverterStationShuntCompensators: string;
146
143
  Side1: string;
147
144
  Side2: string;
145
+ Or: string;
146
+ ConnectivityTab: string;
147
+ CharacteristicsTab: string;
148
+ StructureTab: string;
149
+ AdditionalInformationTab: string;
150
+ StateEstimationTab: string;
148
151
  };
@@ -126,8 +126,6 @@ const networkModificationsEn = {
126
126
  YupNotTypeNumber: "This field only accepts numeric values",
127
127
  CreateLoad: "Create load",
128
128
  loadType: "Type",
129
- ConnectivityTab: "Connectivity",
130
- LineCharacteristicsTab: "Characteristics",
131
129
  VOLTAGE_LEVEL: "Voltage Level",
132
130
  BusBarBus: "Bus bar section / bus",
133
131
  ConnectionName: "Connection name",
@@ -142,7 +140,6 @@ const networkModificationsEn = {
142
140
  NodeNotBuildPositionMessage: "Build the node to display taken positions",
143
141
  NoVoltageLevelPositionMessage: "Select a voltage level to display taken positions",
144
142
  ModifyLoad: "Modify load",
145
- StateEstimationTab: "State estimation",
146
143
  MeasurementsSection: "Measurements",
147
144
  ValidMeasurement: "Valid",
148
145
  InvalidMeasurement: "Invalid",
@@ -150,7 +147,14 @@ const networkModificationsEn = {
150
147
  UnableToDeleteEquipment: "Unable to delete the equipment",
151
148
  LCCConverterStationShuntCompensators: "Shunt compensators related to the LCC",
152
149
  Side1: "Side 1",
153
- Side2: "Side 2"
150
+ Side2: "Side 2",
151
+ Or: "or",
152
+ // Tabs
153
+ ConnectivityTab: "Connectivity",
154
+ CharacteristicsTab: "Characteristics",
155
+ StructureTab: "Structure",
156
+ AdditionalInformationTab: "Additional information",
157
+ StateEstimationTab: "State estimation"
154
158
  };
155
159
  export {
156
160
  networkModificationsEn
@@ -120,8 +120,6 @@ export declare const networkModificationsFr: {
120
120
  YupNotTypeNumber: string;
121
121
  CreateLoad: string;
122
122
  loadType: string;
123
- ConnectivityTab: string;
124
- LineCharacteristicsTab: string;
125
123
  VOLTAGE_LEVEL: string;
126
124
  BusBarBus: string;
127
125
  ConnectionName: string;
@@ -136,7 +134,6 @@ export declare const networkModificationsFr: {
136
134
  NodeNotBuildPositionMessage: string;
137
135
  NoVoltageLevelPositionMessage: string;
138
136
  ModifyLoad: string;
139
- StateEstimationTab: string;
140
137
  MeasurementsSection: string;
141
138
  ValidMeasurement: string;
142
139
  InvalidMeasurement: string;
@@ -145,4 +142,10 @@ export declare const networkModificationsFr: {
145
142
  LCCConverterStationShuntCompensators: string;
146
143
  Side1: string;
147
144
  Side2: string;
145
+ Or: string;
146
+ ConnectivityTab: string;
147
+ CharacteristicsTab: string;
148
+ StructureTab: string;
149
+ AdditionalInformationTab: string;
150
+ StateEstimationTab: string;
148
151
  };
@@ -99,7 +99,7 @@ const networkModificationsFr = {
99
99
  BusBarSections: "Section de jeu de barres",
100
100
  BusBarCount: "Nb de barres",
101
101
  numberOfSections: "Nb de sections",
102
- SwitchesBetweenSections: "OCs entre sections",
102
+ SwitchesBetweenSections: "Organes de coupure entre sections",
103
103
  Coupling_Omnibus: "Couplage / omnibus",
104
104
  AddCoupling_Omnibus: "Ajouter couplage / omnibus",
105
105
  SwitchBetweenSectionsLabel: "section_{index1} / section_{index2}",
@@ -126,8 +126,6 @@ const networkModificationsFr = {
126
126
  YupNotTypeNumber: "Ce champ n'accepte que des valeurs numériques",
127
127
  CreateLoad: "Créer une consommation",
128
128
  loadType: "Type",
129
- ConnectivityTab: "Connectivité",
130
- LineCharacteristicsTab: "Caractéristiques",
131
129
  VOLTAGE_LEVEL: "Poste",
132
130
  BusBarBus: "SJB / nœud",
133
131
  ConnectionName: "Nom départ",
@@ -142,7 +140,6 @@ const networkModificationsFr = {
142
140
  NodeNotBuildPositionMessage: "Veuillez réaliser le nœud pour afficher les positions prises",
143
141
  NoVoltageLevelPositionMessage: "Veuillez choisir un poste pour afficher les positions prises",
144
142
  ModifyLoad: "Modifier une consommation",
145
- StateEstimationTab: "Estimation d'état",
146
143
  MeasurementsSection: "Télémesures",
147
144
  ValidMeasurement: "Valide",
148
145
  InvalidMeasurement: "Invalide",
@@ -150,7 +147,14 @@ const networkModificationsFr = {
150
147
  UnableToDeleteEquipment: "Impossible de supprimer l'ouvrage",
151
148
  LCCConverterStationShuntCompensators: "Moyens de compensation liés à la LCC",
152
149
  Side1: "Côté 1",
153
- Side2: "Côté 2"
150
+ Side2: "Côté 2",
151
+ Or: "ou",
152
+ // Tabs
153
+ ConnectivityTab: "Connectivité",
154
+ CharacteristicsTab: "Caractéristiques",
155
+ StructureTab: "Structure",
156
+ AdditionalInformationTab: "Compléments",
157
+ StateEstimationTab: "Estimation d'état"
154
158
  };
155
159
  export {
156
160
  networkModificationsFr
@@ -27,7 +27,7 @@ import { AnnouncementSeverity, ArrayAction } from "./types/types.js";
27
27
  import { MODIFICATION_TYPES, ModificationType } from "./types/modificationType.js";
28
28
  import { FieldType } from "./types/fieldType.js";
29
29
  import { ParameterType } from "./types/parameters.type.js";
30
- import { SolverTypeInfos } from "./types/dynamic-simulation.type.js";
30
+ import { SolverType } from "./types/dynamic-simulation.type.js";
31
31
  import { DistributionType, SensitivityType } from "./types/sensitivity-analysis.type.js";
32
32
  import { CalculationType, LoadModelsRule } from "./types/dynamic-margin-calculation.type.js";
33
33
  import { OperationType } from "./types/network-modification-types.js";
@@ -115,7 +115,7 @@ export {
115
115
  SVC,
116
116
  SensitivityType,
117
117
  ShuntCompensator,
118
- SolverTypeInfos,
118
+ SolverType,
119
119
  Substation,
120
120
  SusceptanceAdornment,
121
121
  TYPE_TAG_MAX_SIZE,
@@ -1,12 +1,11 @@
1
1
  import { UUID } from 'node:crypto';
2
- export declare enum SolverTypeInfos {
2
+ export declare enum SolverType {
3
3
  IDA = "IDA",
4
4
  SIM = "SIM"
5
5
  }
6
6
  type CommonSolverInfos = {
7
- id: string;
8
- name: string;
9
- type: SolverTypeInfos;
7
+ id: UUID;
8
+ type: SolverType;
10
9
  fNormTolAlg: number;
11
10
  initialAddTolAlg: number;
12
11
  scStepTolAlg: number;
@@ -32,8 +31,7 @@ type CommonSolverInfos = {
32
31
  minimalAcceptableStep: number;
33
32
  };
34
33
  type IdaSolverInfos = CommonSolverInfos & {
35
- name: 'IDA';
36
- type: SolverTypeInfos.IDA;
34
+ type: SolverType.IDA;
37
35
  order: number;
38
36
  initStep: number;
39
37
  minStep: number;
@@ -42,8 +40,7 @@ type IdaSolverInfos = CommonSolverInfos & {
42
40
  relAccuracy: number;
43
41
  };
44
42
  type SimSolverInfos = CommonSolverInfos & {
45
- name: 'SIM';
46
- type: SolverTypeInfos.SIM;
43
+ type: SolverType.SIM;
47
44
  hMin: number;
48
45
  hMax: number;
49
46
  kReduceStep: number;
@@ -63,8 +60,9 @@ type SimSolverInfos = CommonSolverInfos & {
63
60
  minimumModeChangeTypeForAlgebraicRestoration: string;
64
61
  minimumModeChangeTypeForAlgebraicRestorationInit: string;
65
62
  };
66
- type NetworkInfos = Record<string, number | string | boolean>;
63
+ type NetworkInfos = Record<string, UUID | number | string | boolean>;
67
64
  type CurveInfos = {
65
+ id?: UUID;
68
66
  equipmentType?: string;
69
67
  equipmentId: string;
70
68
  variableId: string;
@@ -95,11 +93,12 @@ export type MappingInfos = {
95
93
  name: string;
96
94
  };
97
95
  export type DynamicSimulationParametersInfos = {
96
+ id?: UUID;
98
97
  provider?: string;
99
98
  startTime?: number;
100
99
  stopTime?: number;
101
100
  mapping?: string;
102
- solverId: string;
101
+ solver: SolverType;
103
102
  solvers?: SolverInfos[];
104
103
  network?: NetworkInfos;
105
104
  curves?: CurveInfos[] | null;
@@ -1,8 +1,8 @@
1
- var SolverTypeInfos = /* @__PURE__ */ ((SolverTypeInfos2) => {
2
- SolverTypeInfos2["IDA"] = "IDA";
3
- SolverTypeInfos2["SIM"] = "SIM";
4
- return SolverTypeInfos2;
5
- })(SolverTypeInfos || {});
1
+ var SolverType = /* @__PURE__ */ ((SolverType2) => {
2
+ SolverType2["IDA"] = "IDA";
3
+ SolverType2["SIM"] = "SIM";
4
+ return SolverType2;
5
+ })(SolverType || {});
6
6
  export {
7
- SolverTypeInfos
7
+ SolverType
8
8
  };
@@ -8,7 +8,7 @@ import { AnnouncementSeverity, ArrayAction } from "./types.js";
8
8
  import { MODIFICATION_TYPES, ModificationType } from "./modificationType.js";
9
9
  import { FieldType } from "./fieldType.js";
10
10
  import { ParameterType } from "./parameters.type.js";
11
- import { SolverTypeInfos } from "./dynamic-simulation.type.js";
11
+ import { SolverType } from "./dynamic-simulation.type.js";
12
12
  import { DistributionType, SensitivityType } from "./sensitivity-analysis.type.js";
13
13
  import { CalculationType, LoadModelsRule } from "./dynamic-margin-calculation.type.js";
14
14
  import { OperationType } from "./network-modification-types.js";
@@ -47,7 +47,7 @@ export {
47
47
  SVC,
48
48
  SensitivityType,
49
49
  ShuntCompensator,
50
- SolverTypeInfos,
50
+ SolverType,
51
51
  Substation,
52
52
  TYPE_TAG_MAX_SIZE,
53
53
  ThreeWindingTransfo,
@@ -10,6 +10,7 @@ export type Metadata = {
10
10
  hiddenInAppsMenu: boolean;
11
11
  hiddenUserInformation: boolean;
12
12
  resources?: MetaDataRessources[];
13
+ useBusbarIdAsContingencyNameForPolygonCreation?: boolean;
13
14
  };
14
15
  export type StudyMetadata = Metadata & {
15
16
  name: 'Study';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsuite/commons-ui",
3
- "version": "0.186.0",
3
+ "version": "0.188.0",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "author": "gridsuite team",
6
6
  "homepage": "https://github.com/gridsuite",