@gridsuite/commons-ui 0.186.0 → 0.187.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 (76) 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 +57 -56
  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/types/metadata.d.ts +1 -0
  50. package/package.json +1 -1
  51. package/dist/components/network-modifications/voltage-level/creation/VoltageLevelCreationForm.js +0 -174
  52. package/dist/components/network-modifications/voltage-level/creation/coupling-omnibus/index.js +0 -6
  53. package/dist/components/network-modifications/voltage-level/creation/index.js +0 -24
  54. package/dist/components/network-modifications/voltage-level/creation/substation-creation/SubstationAutocompleteAddButton.d.ts +0 -5
  55. package/dist/components/network-modifications/voltage-level/creation/substation-creation/SubstationAutocompleteAddButton.js +0 -79
  56. package/dist/components/network-modifications/voltage-level/index.js +0 -31
  57. /package/dist/components/network-modifications/{voltage-level → voltageLevel}/creation/VoltageLevelCreationForm.d.ts +0 -0
  58. /package/dist/components/network-modifications/{voltage-level/creation/coupling-omnibus → voltageLevel/creation/tabs/structureTab/couplingOmnibus}/CouplingOmnibusForm.d.ts +0 -0
  59. /package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/SwitchesBetweenSections.d.ts +0 -0
  60. /package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/creation/CreateSwitchesDialogSubmitButton.js +0 -0
  61. /package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/creation/CreateSwitchesForm.d.ts +0 -0
  62. /package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/creation/index.d.ts +0 -0
  63. /package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/creation/index.js +0 -0
  64. /package/dist/components/network-modifications/{voltage-level → voltageLevel}/creation/voltageLevelCreation.types.d.ts +0 -0
  65. /package/dist/components/network-modifications/{voltage-level → voltageLevel}/creation/voltageLevelCreation.types.js +0 -0
  66. /package/dist/components/network-modifications/{voltage-level → voltageLevel}/index.d.ts +0 -0
  67. /package/dist/components/network-modifications/{voltage-level → voltageLevel}/modification/VoltageLevelModificationForm.d.ts +0 -0
  68. /package/dist/components/network-modifications/{voltage-level → voltageLevel}/modification/VoltageLevelModificationForm.js +0 -0
  69. /package/dist/components/network-modifications/{voltage-level → voltageLevel}/modification/index.d.ts +0 -0
  70. /package/dist/components/network-modifications/{voltage-level → voltageLevel}/modification/index.js +0 -0
  71. /package/dist/components/network-modifications/{voltage-level → voltageLevel}/modification/voltageLevelModification.types.d.ts +0 -0
  72. /package/dist/components/network-modifications/{voltage-level → voltageLevel}/modification/voltageLevelModification.types.js +0 -0
  73. /package/dist/components/network-modifications/{voltage-level → voltageLevel}/modification/voltageLevelModification.utils.d.ts +0 -0
  74. /package/dist/components/network-modifications/{voltage-level → voltageLevel}/modification/voltageLevelModification.utils.js +0 -0
  75. /package/dist/components/network-modifications/{voltage-level → voltageLevel}/voltage-level.type.d.ts +0 -0
  76. /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";
@@ -303,6 +252,57 @@ 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,
@@ -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
@@ -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.187.0",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "author": "gridsuite team",
6
6
  "homepage": "https://github.com/gridsuite",
@@ -1,174 +0,0 @@
1
- import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
- import { useEffect, useCallback } from "react";
3
- import { Grid, Box } from "@mui/material";
4
- import { useFormContext, useWatch } from "react-hook-form";
5
- import GridItem from "../../../grid/grid-item.js";
6
- import GridSection from "../../../grid/grid-section.js";
7
- import "react-intl";
8
- import "../../../overflowableText/OverflowableText.js";
9
- import { VoltageAdornment, KiloAmpereAdornment } from "../../../../utils/constants/adornments.js";
10
- import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
11
- import "../../../../utils/conversionUtils.js";
12
- import "../../../../utils/types/equipmentType.js";
13
- import "@mui/icons-material";
14
- import "../../../../utils/yupConfig.js";
15
- import { fetchDefaultCountry } from "../../../../services/appsMetadata.js";
16
- import "localized-countries";
17
- import "localized-countries/data/fr";
18
- import "localized-countries/data/en";
19
- import "notistack";
20
- import "../../../inputs/reactHookForm/provider/CustomFormProvider.js";
21
- import "yup";
22
- import "../../../treeViewFinder/TreeViewFinder.js";
23
- import "../../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
24
- import "../../../customAGGrid/customAggrid.js";
25
- import "ag-grid-community";
26
- import "react-papaparse";
27
- import "react-csv-downloader";
28
- import { AutocompleteInput } from "../../../inputs/reactHookForm/autocompleteInputs/AutocompleteInput.js";
29
- import { FloatInput } from "../../../inputs/reactHookForm/numbers/FloatInput.js";
30
- import { IntegerInput } from "../../../inputs/reactHookForm/numbers/IntegerInput.js";
31
- import "../../../inputs/reactHookForm/numbers/RangeInput.js";
32
- import { TextInput } from "../../../inputs/reactHookForm/text/TextInput.js";
33
- import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
34
- import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
35
- import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
36
- import "@material-symbols/svg-400/outlined/add_notes.svg?react";
37
- import "../../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
38
- import "@react-querybuilder/material";
39
- import "../../../filter/expert/expertFilterConstants.js";
40
- import "../../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
41
- import "uuid";
42
- import "../../../inputs/reactQueryBuilder/PropertyValueEditor.js";
43
- import "react-querybuilder";
44
- import { PropertiesForm } from "../../common/properties/PropertiesForm.js";
45
- import "./switches-between-sections/creation/CreateSwitchesDialog.js";
46
- import { SwitchesBetweenSections } from "./switches-between-sections/SwitchesBetweenSections.js";
47
- import { CouplingOmnibusForm } from "./coupling-omnibus/CouplingOmnibusForm.js";
48
- import { SubstationCreationSection } from "./substation-creation/SubstationCreationSection.js";
49
- import { SubstationAutocompleteAddButton } from "./substation-creation/SubstationAutocompleteAddButton.js";
50
- function VoltageLevelCreationForm({
51
- substationOptions,
52
- showDeleteSubstationButton = true
53
- } = {}) {
54
- const { setValue, getValues } = useFormContext();
55
- const watchAddSubstationCreation = useWatch({ name: FieldConstants.ADD_SUBSTATION_CREATION });
56
- const watchHideNominalVoltage = useWatch({ name: FieldConstants.HIDE_NOMINAL_VOLTAGE });
57
- const watchHideBusBarSection = useWatch({ name: FieldConstants.HIDE_BUS_BAR_SECTION });
58
- const watchBusBarCount = useWatch({ name: FieldConstants.BUS_BAR_COUNT });
59
- const watchSectionCount = useWatch({ name: FieldConstants.SECTION_COUNT });
60
- const displayOmnibus = watchBusBarCount > 1 || watchSectionCount > 1;
61
- useEffect(() => {
62
- if (watchAddSubstationCreation && !getValues(FieldConstants.COUNTRY)) {
63
- fetchDefaultCountry().then((country) => {
64
- if (country) {
65
- setValue(FieldConstants.COUNTRY, country);
66
- }
67
- });
68
- }
69
- }, [setValue, getValues, watchAddSubstationCreation]);
70
- const handleDeleteSubstationCreation = useCallback(() => {
71
- setValue(FieldConstants.ADD_SUBSTATION_CREATION, false);
72
- setValue(FieldConstants.SUBSTATION_CREATION_ID, null);
73
- setValue(FieldConstants.SUBSTATION_NAME, null);
74
- setValue(FieldConstants.COUNTRY, null);
75
- }, [setValue]);
76
- const substationField = substationOptions ? /* @__PURE__ */ jsx(
77
- AutocompleteInput,
78
- {
79
- openOnFocus: true,
80
- forcePopupIcon: true,
81
- name: FieldConstants.SUBSTATION_ID,
82
- label: "SUBSTATION",
83
- options: substationOptions,
84
- size: "small",
85
- formProps: { margin: "normal" },
86
- allowNewValue: true,
87
- PaperComponent: SubstationAutocompleteAddButton,
88
- noOptionsText: ""
89
- }
90
- ) : /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.SUBSTATION_ID, label: "SUBSTATION", formProps: { margin: "normal" } });
91
- return /* @__PURE__ */ jsxs(Fragment, { children: [
92
- /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
93
- /* @__PURE__ */ jsx(GridItem, { children: /* @__PURE__ */ jsx(
94
- TextInput,
95
- {
96
- name: FieldConstants.EQUIPMENT_ID,
97
- label: "ID",
98
- formProps: { autoFocus: true, margin: "normal" }
99
- }
100
- ) }),
101
- /* @__PURE__ */ jsx(GridItem, { children: /* @__PURE__ */ jsx(TextInput, { name: FieldConstants.EQUIPMENT_NAME, label: "Name", formProps: { margin: "normal" } }) })
102
- ] }),
103
- watchAddSubstationCreation ? /* @__PURE__ */ jsx(
104
- SubstationCreationSection,
105
- {
106
- showDeleteButton: showDeleteSubstationButton,
107
- onDelete: handleDeleteSubstationCreation
108
- }
109
- ) : /* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, children: /* @__PURE__ */ jsx(Grid, { item: true, xs: 12, sm: 6, children: substationField }) }),
110
- /* @__PURE__ */ jsx(GridSection, { title: "VoltageText" }),
111
- /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
112
- !watchHideNominalVoltage && /* @__PURE__ */ jsx(GridItem, { size: 4, children: /* @__PURE__ */ jsx(
113
- FloatInput,
114
- {
115
- name: FieldConstants.NOMINAL_V,
116
- label: "NominalVoltage",
117
- adornment: VoltageAdornment
118
- }
119
- ) }),
120
- /* @__PURE__ */ jsx(GridItem, { size: 4, children: /* @__PURE__ */ jsx(
121
- FloatInput,
122
- {
123
- name: FieldConstants.LOW_VOLTAGE_LIMIT,
124
- label: "LowVoltageLimit",
125
- adornment: VoltageAdornment
126
- }
127
- ) }),
128
- /* @__PURE__ */ jsx(GridItem, { size: 4, children: /* @__PURE__ */ jsx(
129
- FloatInput,
130
- {
131
- name: FieldConstants.HIGH_VOLTAGE_LIMIT,
132
- label: "HighVoltageLimit",
133
- adornment: VoltageAdornment
134
- }
135
- ) })
136
- ] }),
137
- /* @__PURE__ */ jsx(GridSection, { title: "ShortCircuit" }),
138
- /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
139
- /* @__PURE__ */ jsx(GridItem, { size: 4, children: /* @__PURE__ */ jsx(
140
- FloatInput,
141
- {
142
- name: FieldConstants.LOW_SHORT_CIRCUIT_CURRENT_LIMIT,
143
- label: "LowShortCircuitCurrentLimit",
144
- adornment: KiloAmpereAdornment
145
- }
146
- ) }),
147
- /* @__PURE__ */ jsx(GridItem, { size: 4, children: /* @__PURE__ */ jsx(
148
- FloatInput,
149
- {
150
- name: FieldConstants.HIGH_SHORT_CIRCUIT_CURRENT_LIMIT,
151
- label: "HighShortCircuitCurrentLimit",
152
- adornment: KiloAmpereAdornment
153
- }
154
- ) }),
155
- /* @__PURE__ */ jsx(Box, { sx: { width: "100%" } })
156
- ] }),
157
- !watchHideBusBarSection && /* @__PURE__ */ jsxs(Fragment, { children: [
158
- /* @__PURE__ */ jsx(GridSection, { title: "BusBarSections" }),
159
- /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, children: [
160
- /* @__PURE__ */ jsx(GridItem, { size: 4, children: /* @__PURE__ */ jsx(IntegerInput, { name: FieldConstants.BUS_BAR_COUNT, label: "BusBarCount" }) }),
161
- /* @__PURE__ */ jsx(GridItem, { size: 4, children: /* @__PURE__ */ jsx(IntegerInput, { name: FieldConstants.SECTION_COUNT, label: "numberOfSections" }) }),
162
- /* @__PURE__ */ jsx(SwitchesBetweenSections, {})
163
- ] }),
164
- displayOmnibus && /* @__PURE__ */ jsxs(Fragment, { children: [
165
- /* @__PURE__ */ jsx(GridSection, { title: "Coupling_Omnibus" }),
166
- /* @__PURE__ */ jsx(Grid, { container: true, children: /* @__PURE__ */ jsx(GridItem, { size: 12, children: /* @__PURE__ */ jsx(CouplingOmnibusForm, {}) }) })
167
- ] })
168
- ] }),
169
- /* @__PURE__ */ jsx(PropertiesForm, { networkElementType: "voltageLevel" })
170
- ] });
171
- }
172
- export {
173
- VoltageLevelCreationForm
174
- };
@@ -1,6 +0,0 @@
1
- import { CouplingOmnibusForm } from "./CouplingOmnibusForm.js";
2
- import { CouplingOmnibusCreation } from "./CouplingOmnibusCreation.js";
3
- export {
4
- CouplingOmnibusCreation,
5
- CouplingOmnibusForm
6
- };
@@ -1,24 +0,0 @@
1
- import { CreateSwitchesDialog } from "./switches-between-sections/creation/CreateSwitchesDialog.js";
2
- import { SwitchesBetweenSections } from "./switches-between-sections/SwitchesBetweenSections.js";
3
- import { CouplingOmnibusForm } from "./coupling-omnibus/CouplingOmnibusForm.js";
4
- import { CouplingOmnibusCreation } from "./coupling-omnibus/CouplingOmnibusCreation.js";
5
- import { VoltageLevelCreationForm } from "./VoltageLevelCreationForm.js";
6
- import { SWITCH_TYPE, buildNewBusbarSections, getCreateSwitchesEmptyFormData, getCreateSwitchesValidationSchema, translateSwitchKinds, voltageLevelCreationDtoToForm, voltageLevelCreationEmptyFormData, voltageLevelCreationFormSchema, voltageLevelCreationFormToDto } from "./voltageLevelCreation.utils.js";
7
- import { SwitchKind } from "./voltageLevelCreation.types.js";
8
- export {
9
- CouplingOmnibusCreation,
10
- CouplingOmnibusForm,
11
- CreateSwitchesDialog,
12
- SWITCH_TYPE,
13
- SwitchKind,
14
- SwitchesBetweenSections,
15
- VoltageLevelCreationForm,
16
- buildNewBusbarSections,
17
- getCreateSwitchesEmptyFormData,
18
- getCreateSwitchesValidationSchema,
19
- translateSwitchKinds,
20
- voltageLevelCreationDtoToForm,
21
- voltageLevelCreationEmptyFormData,
22
- voltageLevelCreationFormSchema,
23
- voltageLevelCreationFormToDto
24
- };
@@ -1,5 +0,0 @@
1
- /**
2
- * Custom Paper component for the substation Autocomplete dropdown.
3
- * Appends a "Create Substation" action button below the options list.
4
- */
5
- export declare function SubstationAutocompleteAddButton({ children, ...rest }: Readonly<React.HTMLAttributes<HTMLElement>>): import("react/jsx-runtime").JSX.Element;