@gridsuite/commons-ui 0.185.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 (115) hide show
  1. package/dist/components/index.d.ts +1 -0
  2. package/dist/components/index.js +28 -12
  3. package/dist/components/network-modifications/by-filter/commons/by-filter.type.d.ts +5 -0
  4. package/dist/components/network-modifications/by-filter/deletion/ByFilterDeletionForm.d.ts +7 -0
  5. package/dist/components/network-modifications/by-filter/deletion/ByFilterDeletionForm.js +83 -0
  6. package/dist/components/network-modifications/by-filter/deletion/byFilterDeletion.types.d.ts +7 -0
  7. package/dist/components/network-modifications/by-filter/deletion/byFilterDeletion.utils.d.ts +18 -0
  8. package/dist/components/network-modifications/by-filter/deletion/byFilterDeletion.utils.js +52 -0
  9. package/dist/components/network-modifications/by-filter/deletion/index.d.ts +9 -0
  10. package/dist/components/network-modifications/by-filter/deletion/index.js +10 -0
  11. package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → by-filter}/index.d.ts +1 -2
  12. package/dist/components/network-modifications/by-filter/index.js +10 -0
  13. package/dist/components/network-modifications/common/connectivity/connectivityForm.utils.d.ts +1 -1
  14. package/dist/components/network-modifications/index.d.ts +2 -1
  15. package/dist/components/network-modifications/index.js +52 -12
  16. package/dist/components/network-modifications/load/common/LoadDialogTabs.js +1 -1
  17. package/dist/components/network-modifications/voltageLevel/creation/VoltageLevelCreationForm.js +138 -0
  18. package/dist/components/network-modifications/{voltage-level → voltageLevel}/creation/index.d.ts +1 -2
  19. package/dist/components/network-modifications/voltageLevel/creation/index.js +57 -0
  20. package/dist/components/network-modifications/voltageLevel/creation/tabs/characteristicsTab/CharacteristicsTab.d.ts +1 -0
  21. package/dist/components/network-modifications/voltageLevel/creation/tabs/characteristicsTab/CharacteristicsTab.js +93 -0
  22. package/dist/components/network-modifications/voltageLevel/creation/tabs/characteristicsTab/index.d.ts +7 -0
  23. package/dist/components/network-modifications/voltageLevel/creation/tabs/characteristicsTab/index.js +4 -0
  24. package/dist/components/network-modifications/voltageLevel/creation/tabs/index.d.ts +9 -0
  25. package/dist/components/network-modifications/voltageLevel/creation/tabs/index.js +10 -0
  26. package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/StructureTab.d.ts +1 -0
  27. package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/StructureTab.js +60 -0
  28. package/dist/components/network-modifications/{voltage-level/creation/coupling-omnibus → voltageLevel/creation/tabs/structureTab/couplingOmnibus}/CouplingOmnibusCreation.d.ts +1 -1
  29. package/dist/components/network-modifications/{voltage-level/creation/coupling-omnibus → voltageLevel/creation/tabs/structureTab/couplingOmnibus}/CouplingOmnibusCreation.js +6 -6
  30. package/dist/components/network-modifications/{voltage-level/creation/coupling-omnibus → voltageLevel/creation/tabs/structureTab/couplingOmnibus}/CouplingOmnibusForm.js +16 -16
  31. package/dist/components/network-modifications/{voltage-level/creation/coupling-omnibus → voltageLevel/creation/tabs/structureTab/couplingOmnibus}/index.d.ts +0 -1
  32. package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/couplingOmnibus/index.js +4 -0
  33. package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/index.d.ts +8 -0
  34. package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/index.js +6 -0
  35. package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/SwitchesBetweenSections.js +19 -17
  36. package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/creation/CreateSwitchesDialog.d.ts +1 -1
  37. package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/creation/CreateSwitchesDialog.js +16 -16
  38. package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/creation/CreateSwitchesDialogSubmitButton.d.ts +1 -1
  39. package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/creation/CreateSwitchesForm.js +16 -16
  40. package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/creation/createSwitchesDialog.utils.d.ts +1 -1
  41. package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/creation/createSwitchesDialog.utils.js +5 -5
  42. package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/index.d.ts +7 -0
  43. package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/index.js +0 -2
  44. package/dist/components/network-modifications/{voltage-level/creation/substation-creation → voltageLevel/creation/tabs/substationTab}/SubstationCreationSection.d.ts +1 -2
  45. package/dist/components/network-modifications/{voltage-level/creation/substation-creation → voltageLevel/creation/tabs/substationTab}/SubstationCreationSection.js +24 -26
  46. package/dist/components/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationTab.d.ts +5 -0
  47. package/dist/components/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationTab.js +81 -0
  48. package/dist/components/network-modifications/voltageLevel/creation/tabs/substationTab/index.d.ts +7 -0
  49. package/dist/components/network-modifications/voltageLevel/creation/tabs/substationTab/index.js +4 -0
  50. package/dist/components/network-modifications/voltageLevel/creation/voltageLevel.constants.d.ts +12 -0
  51. package/dist/components/network-modifications/voltageLevel/creation/voltageLevel.constants.js +9 -0
  52. package/dist/components/network-modifications/{voltage-level → voltageLevel}/creation/voltageLevelCreation.utils.d.ts +4 -0
  53. package/dist/components/network-modifications/{voltage-level → voltageLevel}/creation/voltageLevelCreation.utils.js +16 -0
  54. package/dist/components/network-modifications/voltageLevel/index.js +64 -0
  55. package/dist/components/network-modifications/voltageLevel/modification/voltageLevelModification.types.js +1 -0
  56. package/dist/components/network-modifications/voltageLevel/voltage-level.type.js +1 -0
  57. package/dist/components/node/build-status-chip.d.ts +12 -0
  58. package/dist/components/node/build-status-chip.js +75 -0
  59. package/dist/components/node/constant.d.ts +13 -0
  60. package/dist/components/node/constant.js +11 -0
  61. package/dist/components/node/index.d.ts +2 -0
  62. package/dist/components/node/index.js +6 -0
  63. package/dist/components/parameters/common/parameters-edition-dialog-props.d.ts +2 -0
  64. package/dist/components/parameters/sensi/sensitivity-analysis-parameters-dialog.d.ts +1 -1
  65. package/dist/components/parameters/sensi/sensitivity-analysis-parameters-dialog.js +2 -0
  66. package/dist/components/parameters/sensi/sensitivity-analysis-parameters-form.d.ts +3 -1
  67. package/dist/components/parameters/sensi/sensitivity-analysis-parameters-form.js +4 -2
  68. package/dist/components/parameters/sensi/sensitivity-analysis-parameters-inline.d.ts +3 -1
  69. package/dist/components/parameters/sensi/sensitivity-analysis-parameters-inline.js +3 -0
  70. package/dist/components/parameters/sensi/sensitivity-parameters-selector.d.ts +3 -1
  71. package/dist/components/parameters/sensi/sensitivity-parameters-selector.js +11 -7
  72. package/dist/components/parameters/short-circuit/columns-definition.js +2 -2
  73. package/dist/components/parameters/short-circuit/short-circuit-icc-cluster-table-cell.js +0 -1
  74. package/dist/components/parameters/short-circuit/short-circuit-parameters-utils.js +20 -11
  75. package/dist/index.js +65 -52
  76. package/dist/translations/en/businessErrorsEn.d.ts +2 -0
  77. package/dist/translations/en/businessErrorsEn.js +2 -0
  78. package/dist/translations/en/networkModificationsEn.d.ts +7 -3
  79. package/dist/translations/en/networkModificationsEn.js +9 -4
  80. package/dist/translations/en/parameters.d.ts +7 -0
  81. package/dist/translations/en/parameters.js +8 -1
  82. package/dist/translations/fr/businessErrorsFr.d.ts +2 -0
  83. package/dist/translations/fr/businessErrorsFr.js +2 -0
  84. package/dist/translations/fr/networkModificationsFr.d.ts +7 -3
  85. package/dist/translations/fr/networkModificationsFr.js +10 -5
  86. package/dist/translations/fr/parameters.d.ts +7 -0
  87. package/dist/translations/fr/parameters.js +8 -1
  88. package/dist/utils/types/metadata.d.ts +1 -0
  89. package/package.json +1 -1
  90. package/dist/components/network-modifications/voltage-level/creation/VoltageLevelCreationForm.js +0 -174
  91. package/dist/components/network-modifications/voltage-level/creation/coupling-omnibus/index.js +0 -6
  92. package/dist/components/network-modifications/voltage-level/creation/index.js +0 -24
  93. package/dist/components/network-modifications/voltage-level/creation/substation-creation/SubstationAutocompleteAddButton.d.ts +0 -5
  94. package/dist/components/network-modifications/voltage-level/creation/substation-creation/SubstationAutocompleteAddButton.js +0 -79
  95. package/dist/components/network-modifications/voltage-level/index.js +0 -31
  96. /package/dist/components/network-modifications/{voltage-level/modification/voltageLevelModification.types.js → by-filter/commons/by-filter.type.js} +0 -0
  97. /package/dist/components/network-modifications/{voltage-level/voltage-level.type.js → by-filter/deletion/byFilterDeletion.types.js} +0 -0
  98. /package/dist/components/network-modifications/{voltage-level → voltageLevel}/creation/VoltageLevelCreationForm.d.ts +0 -0
  99. /package/dist/components/network-modifications/{voltage-level/creation/coupling-omnibus → voltageLevel/creation/tabs/structureTab/couplingOmnibus}/CouplingOmnibusForm.d.ts +0 -0
  100. /package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/SwitchesBetweenSections.d.ts +0 -0
  101. /package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/creation/CreateSwitchesDialogSubmitButton.js +0 -0
  102. /package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/creation/CreateSwitchesForm.d.ts +0 -0
  103. /package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/creation/index.d.ts +0 -0
  104. /package/dist/components/network-modifications/{voltage-level/creation/switches-between-sections → voltageLevel/creation/tabs/structureTab/switchesBetweenSections}/creation/index.js +0 -0
  105. /package/dist/components/network-modifications/{voltage-level → voltageLevel}/creation/voltageLevelCreation.types.d.ts +0 -0
  106. /package/dist/components/network-modifications/{voltage-level → voltageLevel}/creation/voltageLevelCreation.types.js +0 -0
  107. /package/dist/components/network-modifications/{voltage-level → voltageLevel}/index.d.ts +0 -0
  108. /package/dist/components/network-modifications/{voltage-level → voltageLevel}/modification/VoltageLevelModificationForm.d.ts +0 -0
  109. /package/dist/components/network-modifications/{voltage-level → voltageLevel}/modification/VoltageLevelModificationForm.js +0 -0
  110. /package/dist/components/network-modifications/{voltage-level → voltageLevel}/modification/index.d.ts +0 -0
  111. /package/dist/components/network-modifications/{voltage-level → voltageLevel}/modification/index.js +0 -0
  112. /package/dist/components/network-modifications/{voltage-level → voltageLevel}/modification/voltageLevelModification.types.d.ts +0 -0
  113. /package/dist/components/network-modifications/{voltage-level → voltageLevel}/modification/voltageLevelModification.utils.d.ts +0 -0
  114. /package/dist/components/network-modifications/{voltage-level → voltageLevel}/modification/voltageLevelModification.utils.js +0 -0
  115. /package/dist/components/network-modifications/{voltage-level → voltageLevel}/voltage-level.type.d.ts +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsuite/commons-ui",
3
- "version": "0.185.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;
@@ -1,79 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import { useCallback } from "react";
3
- import { Paper, Box, IconButton } from "@mui/material";
4
- import { useFormContext } from "react-hook-form";
5
- import { useIntl } from "react-intl";
6
- import { FieldConstants } from "../../../../../utils/constants/fieldConstants.js";
7
- import "../../../../../utils/conversionUtils.js";
8
- import "../../../../../utils/types/equipmentType.js";
9
- import "@mui/icons-material";
10
- import "../../../../../utils/yupConfig.js";
11
- import { LineSeparator } from "../../../../parameters/common/line-separator.js";
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 "../../../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
18
- import "../../../../dialogs/elementSaveDialog/ElementSaveDialog.js";
19
- import "../../../../treeViewFinder/TreeViewFinder.js";
20
- import "../../../../overflowableText/OverflowableText.js";
21
- import "yup";
22
- import "../../../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
23
- import "../../../../customAGGrid/customAggrid.js";
24
- import "ag-grid-community";
25
- import "react-papaparse";
26
- import "react-csv-downloader";
27
- import "../../../../inputs/reactHookForm/numbers/RangeInput.js";
28
- import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
29
- import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
30
- import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
31
- import "@material-symbols/svg-400/outlined/add_notes.svg?react";
32
- import "@react-querybuilder/material";
33
- import "../../../../filter/expert/expertFilterConstants.js";
34
- import "../../../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
35
- import "uuid";
36
- import "../../../../inputs/reactQueryBuilder/PropertyValueEditor.js";
37
- import "react-querybuilder";
38
- import "../../../../parameters/common/widget/parameter-line-slider.js";
39
- import "../../../../parameters/common/limitreductions/columns-definitions.js";
40
- import "../../../../parameters/common/contingency-table/columns-definitions.js";
41
- import "../../../../parameters/network-visualizations/constants.js";
42
- import "@hookform/resolvers/yup";
43
- import "../../../../filter/HeaderFilterForm.js";
44
- import "../../../../parameters/loadflow/load-flow-parameters-context.js";
45
- import "../../../../parameters/loadflow/load-flow-parameters-content.js";
46
- import "../../../../parameters/short-circuit/short-circuit-parameters-content.js";
47
- import "@hello-pangea/dnd";
48
- import "../../../../parameters/sensi/utils.js";
49
- import "../../../../parameters/sensi/columns-definitions.js";
50
- import "../../../../parameters/dynamic-margin-calculation/time-delay-parameters.js";
51
- import "../../../../parameters/dynamic-margin-calculation/loads-variations-parameters.js";
52
- import "../../../../parameters/dynamic-margin-calculation/use-dynamic-margin-calculation-parameters-form.js";
53
- import "../../../../parameters/dynamic-security-analysis/use-dynamic-security-analysis-parameters-form.js";
54
- import "../../../../parameters/dynamic-security-analysis/scenario-parameters.js";
55
- import "../../../../parameters/dynamic-security-analysis/contingency-parameters.js";
56
- function SubstationAutocompleteAddButton({ children, ...rest }) {
57
- const { setValue, getValues } = useFormContext();
58
- const intl = useIntl();
59
- const handleCreateSubstation = useCallback(() => {
60
- setValue(FieldConstants.SUBSTATION_CREATION_ID, getValues(FieldConstants.SUBSTATION_ID));
61
- setValue(FieldConstants.ADD_SUBSTATION_CREATION, true);
62
- }, [setValue, getValues]);
63
- return /* @__PURE__ */ jsx(Paper, { ...rest, children: /* @__PURE__ */ jsxs(Box, { children: [
64
- children,
65
- /* @__PURE__ */ jsx(LineSeparator, {}),
66
- /* @__PURE__ */ jsx(
67
- IconButton,
68
- {
69
- color: "primary",
70
- sx: { justifyContent: "flex-start", fontSize: "medium", width: "100%" },
71
- onMouseDown: handleCreateSubstation,
72
- children: `${intl.formatMessage({ id: "CreateSubstation" })} : ${getValues(FieldConstants.SUBSTATION_ID)}`
73
- }
74
- )
75
- ] }) });
76
- }
77
- export {
78
- SubstationAutocompleteAddButton
79
- };
@@ -1,31 +0,0 @@
1
- import { CreateSwitchesDialog } from "./creation/switches-between-sections/creation/CreateSwitchesDialog.js";
2
- import { SwitchesBetweenSections } from "./creation/switches-between-sections/SwitchesBetweenSections.js";
3
- import { CouplingOmnibusForm } from "./creation/coupling-omnibus/CouplingOmnibusForm.js";
4
- import { CouplingOmnibusCreation } from "./creation/coupling-omnibus/CouplingOmnibusCreation.js";
5
- import { VoltageLevelCreationForm } from "./creation/VoltageLevelCreationForm.js";
6
- import { SWITCH_TYPE, buildNewBusbarSections, getCreateSwitchesEmptyFormData, getCreateSwitchesValidationSchema, translateSwitchKinds, voltageLevelCreationDtoToForm, voltageLevelCreationEmptyFormData, voltageLevelCreationFormSchema, voltageLevelCreationFormToDto } from "./creation/voltageLevelCreation.utils.js";
7
- import { SwitchKind } from "./creation/voltageLevelCreation.types.js";
8
- import { VoltageLevelModificationForm } from "./modification/VoltageLevelModificationForm.js";
9
- import { voltageLevelModificationDtoToForm, voltageLevelModificationEmptyFormData, voltageLevelModificationFormSchema, voltageLevelModificationFormToDto } from "./modification/voltageLevelModification.utils.js";
10
- export {
11
- CouplingOmnibusCreation,
12
- CouplingOmnibusForm,
13
- CreateSwitchesDialog,
14
- SWITCH_TYPE,
15
- SwitchKind,
16
- SwitchesBetweenSections,
17
- VoltageLevelCreationForm,
18
- VoltageLevelModificationForm,
19
- buildNewBusbarSections,
20
- getCreateSwitchesEmptyFormData,
21
- getCreateSwitchesValidationSchema,
22
- translateSwitchKinds,
23
- voltageLevelCreationDtoToForm,
24
- voltageLevelCreationEmptyFormData,
25
- voltageLevelCreationFormSchema,
26
- voltageLevelCreationFormToDto,
27
- voltageLevelModificationDtoToForm,
28
- voltageLevelModificationEmptyFormData,
29
- voltageLevelModificationFormSchema,
30
- voltageLevelModificationFormToDto
31
- };