@gridsuite/commons-ui 0.280.0 → 0.282.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 (207) hide show
  1. package/dist/components/composite/customAGGrid/custom-aggrid-filters/hooks/use-custom-aggrid-comparator-filter.js +1 -0
  2. package/dist/components/composite/customAGGrid/hooks/use-custom-aggrid-sort.js +1 -0
  3. package/dist/components/composite/reactQueryBuilder/OperatorSelector.js +1 -0
  4. package/dist/components/composite/report/QuickSearch.js +1 -0
  5. package/dist/components/composite/report/report-viewer/log-table/log-table.js +1 -1
  6. package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.d.ts +6 -1
  7. package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js +29 -5
  8. package/dist/components/ui/directoryItemSelector/DirectoryItemSelector.js +1 -0
  9. package/dist/components/ui/reactHookForm/booleans/RadioInput.d.ts +1 -0
  10. package/dist/components/ui/reactHookForm/booleans/RadioInput.js +2 -1
  11. package/dist/features/index.js +92 -12
  12. package/dist/features/network-modification-table/network-modifications-table.js +1 -0
  13. package/dist/features/network-modification-table/renderers/reference-link-cell.js +1 -1
  14. package/dist/features/network-modification-table/renderers/root-network-chip-cell.js +1 -0
  15. package/dist/features/network-modification-table/renderers/switch-cell.js +1 -0
  16. package/dist/features/network-modification-table/row/drag-row-clone.js +1 -0
  17. package/dist/features/network-modification-table/use-modifications-drag-and-drop.js +1 -0
  18. package/dist/features/network-modifications/battery/modification/BatteryDialogTabs.d.ts +3 -3
  19. package/dist/features/network-modifications/battery/modification/BatteryDialogTabs.js +2 -2
  20. package/dist/features/network-modifications/battery/modification/BatteryModificationForm.d.ts +4 -1
  21. package/dist/features/network-modifications/battery/modification/BatteryModificationForm.js +7 -11
  22. package/dist/features/network-modifications/generator/modification/GeneratorDialogTabs.d.ts +3 -3
  23. package/dist/features/network-modifications/generator/modification/GeneratorDialogTabs.js +2 -2
  24. package/dist/features/network-modifications/generator/modification/GeneratorModificationForm.d.ts +4 -1
  25. package/dist/features/network-modifications/generator/modification/GeneratorModificationForm.js +4 -8
  26. package/dist/features/network-modifications/index.d.ts +1 -1
  27. package/dist/features/network-modifications/index.js +81 -6
  28. package/dist/features/network-modifications/line/common/LineDialogTabs.d.ts +3 -3
  29. package/dist/features/network-modifications/line/common/LineDialogTabs.js +2 -2
  30. package/dist/features/network-modifications/line/common/LineForm.d.ts +4 -1
  31. package/dist/features/network-modifications/line/common/LineForm.js +7 -11
  32. package/dist/features/network-modifications/line/common/line.utils.d.ts +1 -1
  33. package/dist/features/network-modifications/load/common/LoadDialogTabs.d.ts +3 -3
  34. package/dist/features/network-modifications/load/common/LoadDialogTabs.js +2 -2
  35. package/dist/features/network-modifications/load/common/LoadForm.d.ts +4 -1
  36. package/dist/features/network-modifications/load/common/LoadForm.js +7 -11
  37. package/dist/features/network-modifications/static-var-compensator/common/static-var-compensator-dialog-tabs.d.ts +3 -2
  38. package/dist/features/network-modifications/static-var-compensator/common/static-var-compensator-dialog-tabs.js +2 -2
  39. package/dist/features/network-modifications/static-var-compensator/creation/static-var-compensator-creation-form.d.ts +4 -1
  40. package/dist/features/network-modifications/static-var-compensator/creation/static-var-compensator-creation-form.js +8 -11
  41. package/dist/features/network-modifications/tabular/TabularForm.d.ts +22 -0
  42. package/dist/features/network-modifications/tabular/TabularForm.js +536 -0
  43. package/dist/features/network-modifications/tabular/index.d.ts +7 -0
  44. package/dist/features/network-modifications/tabular/index.js +65 -0
  45. package/dist/features/network-modifications/tabular/properties/DefineTabularPropertiesDialog.d.ts +12 -0
  46. package/dist/features/network-modifications/tabular/properties/DefineTabularPropertiesDialog.js +123 -0
  47. package/dist/features/network-modifications/tabular/properties/TabularPropertiesForm.d.ts +1 -0
  48. package/dist/features/network-modifications/tabular/properties/TabularPropertiesForm.js +87 -0
  49. package/dist/features/network-modifications/tabular/properties/TabularPropertyForm.d.ts +5 -0
  50. package/dist/features/network-modifications/tabular/properties/TabularPropertyForm.js +91 -0
  51. package/dist/features/network-modifications/tabular/properties/index.d.ts +4 -0
  52. package/dist/features/network-modifications/tabular/properties/index.js +13 -0
  53. package/dist/features/network-modifications/tabular/properties/tabularProperty.utils.d.ts +26 -0
  54. package/dist/features/network-modifications/tabular/properties/tabularProperty.utils.js +50 -0
  55. package/dist/features/network-modifications/tabular/tabular.constants.d.ts +59 -0
  56. package/dist/features/network-modifications/tabular/tabular.constants.js +75 -0
  57. package/dist/features/network-modifications/tabular/tabular.types.d.ts +41 -0
  58. package/dist/features/network-modifications/tabular/tabular.types.js +8 -0
  59. package/dist/features/network-modifications/tabular/tabular.utils.d.ts +68 -0
  60. package/dist/features/network-modifications/tabular/tabular.utils.js +301 -0
  61. package/dist/features/network-modifications/tabular/tabularCreation.utils.d.ts +25 -0
  62. package/dist/features/network-modifications/tabular/tabularCreation.utils.js +276 -0
  63. package/dist/features/network-modifications/tabular/tabularModification.utils.d.ts +43 -0
  64. package/dist/features/network-modifications/tabular/tabularModification.utils.js +406 -0
  65. package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerDialogTabs.d.ts +3 -3
  66. package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerDialogTabs.js +2 -2
  67. package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerForm.d.ts +4 -1
  68. package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerForm.js +7 -11
  69. package/dist/features/network-modifications/voltageLevel/creation/VoltageLevelCreationForm.d.ts +4 -7
  70. package/dist/features/network-modifications/voltageLevel/creation/VoltageLevelCreationForm.js +16 -19
  71. package/dist/features/network-modifications/voltageLevel/creation/index.d.ts +1 -1
  72. package/dist/features/network-modifications/voltageLevel/creation/index.js +3 -1
  73. package/dist/features/network-modifications/voltageLevel/index.d.ts +2 -1
  74. package/dist/features/network-modifications/voltageLevel/index.js +18 -4
  75. package/dist/features/network-modifications/voltageLevel/topology/{CreateVoltageLevelTopologyForm.d.ts → creation/CreateVoltageLevelTopologyForm.d.ts} +1 -1
  76. package/dist/features/network-modifications/voltageLevel/topology/{CreateVoltageLevelTopologyForm.js → creation/CreateVoltageLevelTopologyForm.js} +38 -38
  77. package/dist/features/network-modifications/voltageLevel/topology/{voltageLevelTopologyCreation.types.d.ts → creation/voltageLevelTopologyCreation.types.d.ts} +1 -1
  78. package/dist/features/network-modifications/voltageLevel/topology/{voltageLevelTopologyCreation.utils.d.ts → creation/voltageLevelTopologyCreation.utils.d.ts} +1 -1
  79. package/dist/features/network-modifications/voltageLevel/topology/{voltageLevelTopologyCreation.utils.js → creation/voltageLevelTopologyCreation.utils.js} +5 -5
  80. package/dist/features/network-modifications/voltageLevel/topology/modification/ConnectionCellRender.d.ts +6 -0
  81. package/dist/features/network-modifications/voltageLevel/topology/modification/ConnectionCellRender.js +80 -0
  82. package/dist/features/network-modifications/voltageLevel/topology/modification/VoltageLevelTopologyModificationForm.d.ts +10 -0
  83. package/dist/features/network-modifications/voltageLevel/topology/modification/VoltageLevelTopologyModificationForm.js +284 -0
  84. package/dist/features/network-modifications/voltageLevel/topology/modification/constants.d.ts +10 -0
  85. package/dist/features/network-modifications/voltageLevel/topology/modification/constants.js +10 -0
  86. package/dist/features/network-modifications/{hooks → voltageLevel/topology/modification}/index.d.ts +4 -1
  87. package/dist/features/network-modifications/voltageLevel/topology/modification/index.js +14 -0
  88. package/dist/features/network-modifications/voltageLevel/topology/modification/voltageLevelTopologyModification.types.d.ts +28 -0
  89. package/dist/features/network-modifications/voltageLevel/topology/modification/voltageLevelTopologyModification.types.js +1 -0
  90. package/dist/features/network-modifications/voltageLevel/topology/modification/voltageLevelTopologyModification.utils.d.ts +29 -0
  91. package/dist/features/network-modifications/voltageLevel/topology/modification/voltageLevelTopologyModification.utils.js +124 -0
  92. package/dist/features/parameters/common/hook/index.d.ts +0 -1
  93. package/dist/features/parameters/common/hook/index.js +1 -3
  94. package/dist/features/parameters/common/index.d.ts +1 -0
  95. package/dist/features/parameters/common/index.js +3 -3
  96. package/dist/features/parameters/common/parameter-field.d.ts +2 -2
  97. package/dist/features/parameters/common/parameter-field.js +1 -1
  98. package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-form.d.ts +1 -1
  99. package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-form.js +1 -1
  100. package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-inline.js +10 -10
  101. package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation.type.d.ts +1 -0
  102. package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation.type.js +2 -0
  103. package/dist/features/parameters/dynamic-margin-calculation/loads-variations-parameters.js +1 -1
  104. package/dist/features/parameters/dynamic-margin-calculation/time-delay-parameters.js +1 -1
  105. package/dist/features/parameters/dynamic-security-analysis/contingency-parameters.js +1 -1
  106. package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-inline.js +9 -9
  107. package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.d.ts +1 -1
  108. package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.js +1 -1
  109. package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis.type.d.ts +1 -0
  110. package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis.type.js +2 -0
  111. package/dist/features/parameters/dynamic-security-analysis/scenario-parameters.js +1 -1
  112. package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-preview.js +1 -0
  113. package/dist/features/parameters/dynamic-simulation/curve/dialog/equipment-filter.js +1 -0
  114. package/dist/features/parameters/dynamic-simulation/dynamic-simulation-inline.js +9 -9
  115. package/dist/features/parameters/dynamic-simulation/dynamic-simulation-parameters-form.d.ts +1 -1
  116. package/dist/features/parameters/dynamic-simulation/dynamic-simulation-parameters-form.js +1 -1
  117. package/dist/features/parameters/dynamic-simulation/dynamic-simulation.type.d.ts +1 -0
  118. package/dist/features/parameters/dynamic-simulation/dynamic-simulation.type.js +2 -0
  119. package/dist/features/parameters/dynamic-simulation/network/network-parameters.js +1 -1
  120. package/dist/features/parameters/dynamic-simulation/solver/common-solver/common-solver-parameters.js +1 -1
  121. package/dist/features/parameters/dynamic-simulation/solver/ida-solver/ida-solver-parameters.js +1 -1
  122. package/dist/features/parameters/dynamic-simulation/solver/sim-solver/simplified-solver-parameters.js +1 -1
  123. package/dist/features/parameters/dynamic-simulation/solver/solver-parameters.js +1 -1
  124. package/dist/features/parameters/dynamic-simulation/time-delay/time-delay-parameters.js +1 -1
  125. package/dist/features/parameters/index.js +12 -7
  126. package/dist/features/parameters/loadflow/load-flow-advanced-parameters.js +1 -1
  127. package/dist/features/parameters/loadflow/load-flow-general-parameters.js +1 -1
  128. package/dist/features/parameters/loadflow/load-flow-parameters-inline.js +6 -6
  129. package/dist/features/parameters/loadflow/load-flow-parameters-utils.d.ts +1 -0
  130. package/dist/features/parameters/loadflow/load-flow-parameters-utils.js +2 -0
  131. package/dist/features/parameters/loadflow/load-flow-provider-specific-parameters.js +1 -1
  132. package/dist/features/parameters/loadflow/use-load-flow-parameters-form.js +3 -3
  133. package/dist/features/parameters/network-visualizations/constants.d.ts +1 -0
  134. package/dist/features/parameters/network-visualizations/constants.js +2 -0
  135. package/dist/features/parameters/network-visualizations/index.js +2 -1
  136. package/dist/features/parameters/network-visualizations/network-visualizations-parameters-inline.js +6 -6
  137. package/dist/features/parameters/network-visualizations/use-network-visualizations-parameters-form.js +3 -7
  138. package/dist/features/parameters/pcc-min/pcc-min-parameters-inline.js +6 -6
  139. package/dist/features/parameters/security-analysis/constants.d.ts +1 -0
  140. package/dist/features/parameters/security-analysis/constants.js +2 -0
  141. package/dist/features/parameters/security-analysis/index.js +2 -1
  142. package/dist/features/parameters/security-analysis/security-analysis-parameters-content.js +1 -1
  143. package/dist/features/parameters/security-analysis/security-analysis-parameters-dialog.js +1 -1
  144. package/dist/features/parameters/security-analysis/security-analysis-parameters-inline.js +6 -6
  145. package/dist/features/parameters/security-analysis/use-security-analysis-parameters-form.js +3 -3
  146. package/dist/features/parameters/sensi/columns-definitions.d.ts +2 -0
  147. package/dist/features/parameters/sensi/columns-definitions.js +36 -1
  148. package/dist/features/parameters/sensi/index.js +3 -1
  149. package/dist/features/parameters/sensi/sensitivity-analysis-parameters-dialog.js +1 -1
  150. package/dist/features/parameters/sensi/sensitivity-analysis-parameters-form.js +2 -1
  151. package/dist/features/parameters/sensi/sensitivity-analysis-parameters-inline.js +10 -7
  152. package/dist/features/parameters/sensi/sensitivity-parameters-selector.d.ts +3 -1
  153. package/dist/features/parameters/sensi/sensitivity-parameters-selector.js +19 -35
  154. package/dist/features/parameters/sensi/use-sensitivity-analysis-parameters.d.ts +9 -1
  155. package/dist/features/parameters/sensi/use-sensitivity-analysis-parameters.js +29 -1
  156. package/dist/features/parameters/short-circuit/short-circuit-parameters-inline.js +6 -6
  157. package/dist/features/parameters/short-circuit/short-circuit-parameters-utils.d.ts +1 -0
  158. package/dist/features/parameters/short-circuit/short-circuit-parameters-utils.js +2 -0
  159. package/dist/features/parameters/short-circuit/use-short-circuit-parameters-form.js +3 -3
  160. package/dist/features/parameters/voltage-init/constants.d.ts +1 -0
  161. package/dist/features/parameters/voltage-init/constants.js +2 -0
  162. package/dist/features/parameters/voltage-init/index.js +2 -1
  163. package/dist/features/parameters/voltage-init/use-voltage-init-parameters-form.js +4 -8
  164. package/dist/features/parameters/voltage-init/voltage-init-parameters-inline.js +6 -6
  165. package/dist/features/process-configs/loadflow/lf-process-config-edition.js +7 -1
  166. package/dist/features/process-configs/security-analysis/sa-process-config-edition.js +7 -1
  167. package/dist/features/process-configs/shortcircuit/sc-process-config-edition.js +7 -1
  168. package/dist/features/results/loadflow/limit-violation-result.js +1 -1
  169. package/dist/features/results/shortcircuit/shortcircuit-analysis-result.js +1 -1
  170. package/dist/features/side-bar/AppSideBarHeader.js +20 -5
  171. package/dist/features/side-bar/EnvironmentChip.d.ts +13 -0
  172. package/dist/features/side-bar/EnvironmentChip.js +49 -0
  173. package/dist/hooks/index.d.ts +1 -0
  174. package/dist/hooks/index.js +3 -1
  175. package/dist/hooks/use-tabs.d.ts +33 -0
  176. package/dist/hooks/use-tabs.js +55 -0
  177. package/dist/index.js +97 -13
  178. package/dist/services/appsMetadata.d.ts +2 -0
  179. package/dist/services/directory.d.ts +1 -1
  180. package/dist/services/directory.js +6 -2
  181. package/dist/services/index.js +2 -1
  182. package/dist/services/userAdmin.d.ts +2 -1
  183. package/dist/services/userAdmin.js +9 -1
  184. package/dist/translations/en/businessErrorsEn.d.ts +1 -0
  185. package/dist/translations/en/businessErrorsEn.js +1 -0
  186. package/dist/translations/en/networkModificationsEn.d.ts +85 -0
  187. package/dist/translations/en/networkModificationsEn.js +91 -1
  188. package/dist/translations/fr/businessErrorsFr.d.ts +1 -0
  189. package/dist/translations/fr/businessErrorsFr.js +1 -0
  190. package/dist/translations/fr/networkModificationsFr.d.ts +85 -0
  191. package/dist/translations/fr/networkModificationsFr.js +91 -1
  192. package/dist/utils/constants/index.js +2 -1
  193. package/dist/utils/constants/notificationsProvider.d.ts +1 -0
  194. package/dist/utils/constants/notificationsProvider.js +1 -0
  195. package/dist/utils/constants/translationKeys.d.ts +1 -0
  196. package/dist/utils/constants/translationKeys.js +2 -0
  197. package/dist/utils/index.js +2 -1
  198. package/dist/utils/types/types.d.ts +4 -0
  199. package/package.json +1 -1
  200. package/dist/features/network-modifications/hooks/index.js +0 -4
  201. package/dist/features/network-modifications/hooks/useTabsWithError.d.ts +0 -15
  202. package/dist/features/network-modifications/hooks/useTabsWithError.js +0 -28
  203. package/dist/features/parameters/common/hook/use-tabs.d.ts +0 -16
  204. package/dist/features/parameters/common/hook/use-tabs.js +0 -65
  205. /package/dist/features/network-modifications/voltageLevel/topology/{index.d.ts → creation/index.d.ts} +0 -0
  206. /package/dist/features/network-modifications/voltageLevel/topology/{index.js → creation/index.js} +0 -0
  207. /package/dist/features/network-modifications/voltageLevel/topology/{voltageLevelTopologyCreation.types.js → creation/voltageLevelTopologyCreation.types.js} +0 -0
@@ -9,6 +9,7 @@ import "localized-countries";
9
9
  import "localized-countries/data/fr";
10
10
  import "localized-countries/data/en";
11
11
  import { useSnackMessage } from "../../../../../hooks/useSnackMessage.js";
12
+ import "react-hook-form";
12
13
  import { FilterDataTypes, FilterTextComparators } from "../../custom-aggrid-types.js";
13
14
  import { countDecimalPlacesFromString } from "../../../../../utils/rounding.js";
14
15
  import { computeTolerance } from "../utils/filter-tolerance-utils.js";
@@ -10,6 +10,7 @@ import "localized-countries";
10
10
  import "localized-countries/data/fr";
11
11
  import "localized-countries/data/en";
12
12
  import { useSnackMessage } from "../../../../hooks/useSnackMessage.js";
13
+ import "react-hook-form";
13
14
  import { SortWay } from "../custom-aggrid-types.js";
14
15
  import { useCustomAggridSortContext } from "../context/custom-aggrid-context.js";
15
16
  const useCustomAggridSort = (colId, sortParams, api) => {
@@ -11,6 +11,7 @@ import "localized-countries/data/fr";
11
11
  import "localized-countries/data/en";
12
12
  import "notistack";
13
13
  import { useSelectAppearance } from "../../../hooks/useSelectAppearance.js";
14
+ import "react-hook-form";
14
15
  function OperatorSelector(props) {
15
16
  const { options } = props;
16
17
  const selectAppearance = useSelectAppearance(options?.length || 0);
@@ -10,6 +10,7 @@ import "localized-countries";
10
10
  import "localized-countries/data/fr";
11
11
  import "localized-countries/data/en";
12
12
  import "notistack";
13
+ import "react-hook-form";
13
14
  const styles = {
14
15
  adornmentItem: {
15
16
  padding: "2px"
@@ -16,6 +16,7 @@ import "localized-countries";
16
16
  import "localized-countries/data/fr";
17
17
  import "localized-countries/data/en";
18
18
  import "notistack";
19
+ import "react-hook-form";
19
20
  import { FilterTextComparators, FilterDataTypes, TableType } from "../../../customAGGrid/custom-aggrid-types.js";
20
21
  import "mathjs";
21
22
  import { CustomAggridComparatorFilter } from "../../../customAGGrid/custom-aggrid-filters/custom-aggrid-comparator-filter.js";
@@ -23,7 +24,6 @@ import { makeAgGridCustomHeaderColumn } from "../../../customAGGrid/utils/custom
23
24
  import { AGGRID_LOCALES } from "../../../../../translations/not-intl/aggrid-locales.js";
24
25
  import { useStableComputedArray } from "../../../../../hooks/use-stable-computed-array.js";
25
26
  import "../../../../ui/overflowableText/OverflowableText.js";
26
- import "react-hook-form";
27
27
  import "../../../../ui/reactHookForm/provider/CustomFormProvider.js";
28
28
  import "yup";
29
29
  import "../../../../ui/treeViewFinder/TreeViewFinder.js";
@@ -2,6 +2,7 @@ import { UUID } from 'node:crypto';
2
2
  import { ElementAttributes, ElementType, FieldConstants } from '../../../../utils';
3
3
  declare enum OperationType {
4
4
  CREATE = "CREATE",
5
+ CREATE_SHARED = "CREATE_SHARED",
5
6
  UPDATE = "UPDATE"
6
7
  }
7
8
  export interface IElementCommonFields {
@@ -24,6 +25,10 @@ export type ElementSaveDialogProps = {
24
25
  titleId: string;
25
26
  onSave: (data: IElementCreationDialog) => void;
26
27
  OnUpdate?: (data: IElementUpdateDialog) => void;
28
+ /** when provided, an extra operation is offered to save the element as a shared one */
29
+ onSaveShared?: (data: IElementCreationDialog) => void;
30
+ createSharedLabelId?: string;
31
+ createSharedDisabled?: boolean;
27
32
  prefixIdForGeneratedName?: string;
28
33
  defaultName?: string | null;
29
34
  initialOperation?: OperationType;
@@ -53,5 +58,5 @@ export type ElementSaveDialogProps = {
53
58
  /** or directly a given directory */
54
59
  initDirectory?: ElementAttributes;
55
60
  });
56
- export declare function ElementSaveDialog({ open, onSave, OnUpdate, onClose, type, titleId, prefixIdForGeneratedName, defaultName, studyUuid, initDirectory, initialOperation, selectorTitleId, createLabelId, updateLabelId, createOnlyMode, }: Readonly<ElementSaveDialogProps>): import("react").JSX.Element;
61
+ export declare function ElementSaveDialog({ open, onSave, OnUpdate, onSaveShared, createSharedLabelId, createSharedDisabled, onClose, type, titleId, prefixIdForGeneratedName, defaultName, studyUuid, initDirectory, initialOperation, selectorTitleId, createLabelId, updateLabelId, createOnlyMode, }: Readonly<ElementSaveDialogProps>): import("react").JSX.Element;
57
62
  export {};
@@ -35,6 +35,7 @@ import { CustomMuiDialog } from "../customMuiDialog/CustomMuiDialog.js";
35
35
  import { initializeDirectory } from "./utils.js";
36
36
  var OperationType = /* @__PURE__ */ ((OperationType2) => {
37
37
  OperationType2["CREATE"] = "CREATE";
38
+ OperationType2["CREATE_SHARED"] = "CREATE_SHARED";
38
39
  OperationType2["UPDATE"] = "UPDATE";
39
40
  return OperationType2;
40
41
  })(OperationType || {});
@@ -53,6 +54,9 @@ function ElementSaveDialog({
53
54
  open,
54
55
  onSave,
55
56
  OnUpdate,
57
+ onSaveShared,
58
+ createSharedLabelId,
59
+ createSharedDisabled = false,
56
60
  onClose,
57
61
  type,
58
62
  titleId,
@@ -86,7 +90,7 @@ function ElementSaveDialog({
86
90
  formState: { errors }
87
91
  } = formMethods;
88
92
  const operationType = createOnlyMode ? "CREATE" : watch(FieldConstants.OPERATION_TYPE);
89
- const isCreateMode = operationType === "CREATE";
93
+ const isCreateMode = operationType !== "UPDATE";
90
94
  const disableSave = Object.keys(errors).length > 0 || isCreateMode && !destinationFolder || !isCreateMode && !selectedItem;
91
95
  const setDestinationFolderWithPath = useCallback(
92
96
  (elementUuid, elementName, path) => {
@@ -132,6 +136,15 @@ function ElementSaveDialog({
132
136
  }
133
137
  initializeDestinationFolder();
134
138
  }, [open, isCreateMode, initializeDestinationFolder]);
139
+ useEffect(() => {
140
+ if (createSharedDisabled && operationType === "CREATE_SHARED") {
141
+ setValue(
142
+ FieldConstants.OPERATION_TYPE,
143
+ "CREATE"
144
+ /* CREATE */
145
+ );
146
+ }
147
+ }, [createSharedDisabled, operationType, setValue]);
135
148
  const handleChangeFolder = useCallback(() => {
136
149
  setDirectorySelectorOpen(true);
137
150
  }, []);
@@ -164,14 +177,18 @@ function ElementSaveDialog({
164
177
  );
165
178
  const onSubmit = useCallback(
166
179
  (values) => {
167
- if (isCreateMode && destinationFolder && onSave) {
180
+ if (isCreateMode && destinationFolder) {
168
181
  const creationData = {
169
182
  [FieldConstants.NAME]: values.name,
170
183
  [FieldConstants.DESCRIPTION]: values.description ?? "",
171
184
  [FieldConstants.FOLDER_NAME]: destinationFolder.name ?? "",
172
185
  [FieldConstants.FOLDER_ID]: destinationFolder.id
173
186
  };
174
- onSave(creationData);
187
+ if (values.type === "CREATE_SHARED" && onSaveShared) {
188
+ onSaveShared(creationData);
189
+ } else if (onSave) {
190
+ onSave(creationData);
191
+ }
175
192
  } else if (!isCreateMode && selectedItem && OnUpdate) {
176
193
  const updateData = {
177
194
  [FieldConstants.ID]: selectedItem.id,
@@ -183,7 +200,7 @@ function ElementSaveDialog({
183
200
  OnUpdate(updateData);
184
201
  }
185
202
  },
186
- [isCreateMode, onSave, OnUpdate, destinationFolder, selectedItem]
203
+ [isCreateMode, onSave, onSaveShared, OnUpdate, destinationFolder, selectedItem]
187
204
  );
188
205
  const renderChooser = () => {
189
206
  if (isCreateMode) {
@@ -214,12 +231,19 @@ function ElementSaveDialog({
214
231
  name: FieldConstants.OPERATION_TYPE,
215
232
  options: [
216
233
  { id: "CREATE", label: createLabelId ?? "createLabelId" },
234
+ ...onSaveShared ? [
235
+ {
236
+ id: "CREATE_SHARED",
237
+ label: createSharedLabelId ?? "createSharedLabelId",
238
+ disabled: createSharedDisabled
239
+ }
240
+ ] : [],
217
241
  { id: "UPDATE", label: updateLabelId ?? "updateLabelId" }
218
242
  ],
219
243
  formProps: {
220
244
  sx: {
221
245
  "& .MuiFormControlLabel-root": {
222
- marginRight: 15
246
+ marginRight: onSaveShared ? 4 : 15
223
247
  }
224
248
  }
225
249
  }
@@ -15,6 +15,7 @@ import "localized-countries";
15
15
  import "localized-countries/data/fr";
16
16
  import "localized-countries/data/en";
17
17
  import { useSnackMessage } from "../../../hooks/useSnackMessage.js";
18
+ import "react-hook-form";
18
19
  import { getExpansionPathsForSelected, fetchChildrenForExpandedNodes, initializeFromLastSelected, saveLastSelectedDirectoryFromNode } from "./utils.js";
19
20
  const styles = {
20
21
  icon: (theme) => ({
@@ -2,6 +2,7 @@ import { RadioGroupProps } from '@mui/material';
2
2
  type RadioOptions = Array<{
3
3
  id: string;
4
4
  label: string;
5
+ disabled?: boolean;
5
6
  }>;
6
7
  export interface RadioInputProps {
7
8
  name: string;
@@ -14,7 +14,8 @@ function RadioInput({ name, label, id, options, formProps }) {
14
14
  {
15
15
  control: /* @__PURE__ */ jsx(Radio, {}),
16
16
  value: option.id,
17
- label: /* @__PURE__ */ jsx(FieldLabel, { label: option.label })
17
+ label: /* @__PURE__ */ jsx(FieldLabel, { label: option.label }),
18
+ disabled: option.disabled
18
19
  },
19
20
  option.id
20
21
  )) })
@@ -26,6 +26,7 @@ import { ParameterLayoutProvider, useParameterLayoutContext } from "./parameters
26
26
  import { formatComputingTypeLabel, isValidComputingType } from "./parameters/common/computing-type.js";
27
27
  import { ADVANCED_PARAMETERS, COMMON_PARAMETERS, CONTINGENCIES, CONTINGENCY_LISTS, CONTINGENCY_LISTS_INFOS, PROVIDER, SPECIFIC_PARAMETERS, VERSION_PARAMETER, VOLTAGE_LEVEL } from "./parameters/common/constants.js";
28
28
  import { LineSeparator } from "./parameters/common/line-separator.js";
29
+ import { ParameterField } from "./parameters/common/parameter-field.js";
29
30
  import { LabelledButton, SwitchWithLabel, TabPanel } from "./parameters/common/parameters.js";
30
31
  import { CreateParameterDialog } from "./parameters/common/parameters-creation-dialog.js";
31
32
  import { ProviderParam } from "./parameters/common/provider-param.js";
@@ -43,9 +44,8 @@ import { LimitReductionTableRow } from "./parameters/common/limitreductions/limi
43
44
  import { LimitReductionTableCell } from "./parameters/common/limitreductions/limit-reduction-table-cell.js";
44
45
  import { ContingencyTable } from "./parameters/common/contingency-table/contingency-table.js";
45
46
  import { COLUMNS_DEFINITIONS_CONTINGENCY_LISTS_INFOS, getContingencyListsInfosFormSchema, isValidContingencyRow, toFormValuesContingencyListsInfos } from "./parameters/common/contingency-table/columns-definitions.js";
46
- import { useTabs } from "./parameters/common/hook/use-tabs.js";
47
47
  import { useParametersForm } from "./parameters/common/hook/use-parameters-form.js";
48
- import { CENTER_LABEL, COMPONENT_LIBRARY, CUSTOM_REAL_TIME_STATE_ESTIMATION, DIAGONAL_LABEL, INTL_LINE_FLOW_MODE_OPTIONS, INTL_SUBSTATION_LAYOUT_OPTIONS, LINE_FLOW_MODE, LineFlowMode, MAP_BASE_MAP, MAP_MANUAL_REFRESH, NAD_POSITIONS_GENERATION_MODE, NAD_POSITIONS_GENERATION_MODE_LABEL, NetworkVisualizationTabValues, PARAM_CENTER_LABEL, PARAM_COMPONENT_LIBRARY, PARAM_DIAGONAL_LABEL, PARAM_LINE_FLOW_MODE, PARAM_LINE_FULL_PATH, PARAM_LINE_PARALLEL_PATH, PARAM_MAP_BASEMAP, PARAM_MAP_MANUAL_REFRESH, PARAM_NAD_POSITIONS_GENERATION_MODE, PARAM_STATE_ESTIMATION, PARAM_SUBSTATION_LAYOUT, SUBSTATION_LAYOUT } from "./parameters/network-visualizations/constants.js";
48
+ import { CENTER_LABEL, COMPONENT_LIBRARY, CUSTOM_REAL_TIME_STATE_ESTIMATION, DIAGONAL_LABEL, INTL_LINE_FLOW_MODE_OPTIONS, INTL_SUBSTATION_LAYOUT_OPTIONS, LINE_FLOW_MODE, LineFlowMode, MAP_BASE_MAP, MAP_MANUAL_REFRESH, NAD_POSITIONS_GENERATION_MODE, NAD_POSITIONS_GENERATION_MODE_LABEL, NV_TAB_VALUES, NetworkVisualizationTabValues, PARAM_CENTER_LABEL, PARAM_COMPONENT_LIBRARY, PARAM_DIAGONAL_LABEL, PARAM_LINE_FLOW_MODE, PARAM_LINE_FULL_PATH, PARAM_LINE_PARALLEL_PATH, PARAM_MAP_BASEMAP, PARAM_MAP_MANUAL_REFRESH, PARAM_NAD_POSITIONS_GENERATION_MODE, PARAM_STATE_ESTIMATION, PARAM_SUBSTATION_LAYOUT, SUBSTATION_LAYOUT } from "./parameters/network-visualizations/constants.js";
49
49
  import { MAP_BASEMAP_CARTO, MAP_BASEMAP_CARTO_NOLABEL, MAP_BASEMAP_ETALAB, MAP_BASEMAP_MAPBOX, NadPositionsGenerationMode, SubstationLayout } from "./parameters/network-visualizations/network-visualizations.types.js";
50
50
  import { NetworkVisualizationParametersInline } from "./parameters/network-visualizations/network-visualizations-parameters-inline.js";
51
51
  import { NetworkVisualizationsParametersEditionDialog } from "./parameters/network-visualizations/network-visualizations-parameters-dialog.js";
@@ -55,7 +55,7 @@ import { LoadFlowParametersEditionDialog } from "./parameters/loadflow/load-flow
55
55
  import { InitialVoltage, NODE_CLUSTER, NODE_CLUSTER_FILTER_IDS, PredefinedParameters, SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE, SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS, SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_IN_CALCULATION_CLUSTER, SHORT_CIRCUIT_ONLY_STARTED_GENERATORS_OUTSIDE_CALCULATION_CLUSTER, SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTERS, SHORT_CIRCUIT_POWER_ELECTRONICS_MATERIALS, SHORT_CIRCUIT_PREDEFINED_PARAMS, SHORT_CIRCUIT_VOLTAGE_RANGES, SHORT_CIRCUIT_WITH_FEEDER_RESULT, SHORT_CIRCUIT_WITH_LOADS, SHORT_CIRCUIT_WITH_NEUTRAL_POSITION, SHORT_CIRCUIT_WITH_SHUNT_COMPENSATORS, SHORT_CIRCUIT_WITH_VSC_CONVERTER_STATIONS, STARTED_GENERATORS_IN_CALCULATION_CLUSTER_THRESHOLD, STARTED_GENERATORS_OUTSIDE_CALCULATION_CLUSTER_THRESHOLD, intlInitialVoltageProfileMode, intlPredefinedParametersOptions, onlyStartedGeneratorsOptions } from "./parameters/short-circuit/constants.js";
56
56
  import { ShortCircuitParametersInLine } from "./parameters/short-circuit/short-circuit-parameters-inline.js";
57
57
  import { ShortCircuitParametersEditionDialog } from "./parameters/short-circuit/short-circuit-parameters-dialog.js";
58
- import { DEFAULT_GENERAL_APPLY_MODIFICATIONS, DEFAULT_REACTIVE_SLACKS_THRESHOLD, DEFAULT_SHUNT_COMPENSATOR_ACTIVATION_THRESHOLD, DEFAULT_UPDATE_BUS_VOLTAGE, GENERAL, GENERAL_APPLY_MODIFICATIONS, GENERATORS_SELECTION_TYPE, HIGH_VOLTAGE_LIMIT, LEG_SIDE, LOW_VOLTAGE_LIMIT, PRIORITY, RATIO_TAP_CHANGER_POSITION, RATIO_TAP_CHANGER_TARGET_V, REACTIVE_SLACKS_THRESHOLD, SELECTION_TYPE, SHUNT_COMPENSATORS_SELECTION_TYPE, SHUNT_COMPENSATOR_ACTIVATION_THRESHOLD, TRANSFORMERS_SELECTION_TYPE, UPDATE_BUS_VOLTAGE, VARIABLE_Q_GENERATORS, VARIABLE_SHUNT_COMPENSATORS, VARIABLE_TRANSFORMERS, VOLTAGE_LIMITS_DEFAULT, VOLTAGE_LIMITS_MODIFICATION, VoltageInitTabValues } from "./parameters/voltage-init/constants.js";
58
+ import { DEFAULT_GENERAL_APPLY_MODIFICATIONS, DEFAULT_REACTIVE_SLACKS_THRESHOLD, DEFAULT_SHUNT_COMPENSATOR_ACTIVATION_THRESHOLD, DEFAULT_UPDATE_BUS_VOLTAGE, GENERAL, GENERAL_APPLY_MODIFICATIONS, GENERATORS_SELECTION_TYPE, HIGH_VOLTAGE_LIMIT, LEG_SIDE, LOW_VOLTAGE_LIMIT, PRIORITY, RATIO_TAP_CHANGER_POSITION, RATIO_TAP_CHANGER_TARGET_V, REACTIVE_SLACKS_THRESHOLD, SELECTION_TYPE, SHUNT_COMPENSATORS_SELECTION_TYPE, SHUNT_COMPENSATOR_ACTIVATION_THRESHOLD, TRANSFORMERS_SELECTION_TYPE, UPDATE_BUS_VOLTAGE, VARIABLE_Q_GENERATORS, VARIABLE_SHUNT_COMPENSATORS, VARIABLE_TRANSFORMERS, VOLTAGE_INIT_TAB_VALUES, VOLTAGE_LIMITS_DEFAULT, VOLTAGE_LIMITS_MODIFICATION, VoltageInitTabValues } from "./parameters/voltage-init/constants.js";
59
59
  import { EquipmentsSelectionType } from "./parameters/voltage-init/voltage-init.type.js";
60
60
  import { VoltageInitParametersEditionDialog } from "./parameters/voltage-init/voltage-init-parameters-dialog.js";
61
61
  import { VoltageInitParametersInLine } from "./parameters/voltage-init/voltage-init-parameters-inline.js";
@@ -63,10 +63,10 @@ import { PccMinParametersInLine } from "./parameters/pcc-min/pcc-min-parameters-
63
63
  import { PccMinParametersEditionDialog } from "./parameters/pcc-min/pcc-min-parameters-dialog.js";
64
64
  import { SecurityAnalysisParametersInline } from "./parameters/security-analysis/security-analysis-parameters-inline.js";
65
65
  import { SecurityAnalysisParametersDialog } from "./parameters/security-analysis/security-analysis-parameters-dialog.js";
66
- import { FLOW_PROPORTIONAL_THRESHOLD, HIGH_VOLTAGE_ABSOLUTE_THRESHOLD, HIGH_VOLTAGE_PROPORTIONAL_THRESHOLD, LOW_VOLTAGE_ABSOLUTE_THRESHOLD, LOW_VOLTAGE_PROPORTIONAL_THRESHOLD, TabValues } from "./parameters/security-analysis/constants.js";
66
+ import { FLOW_PROPORTIONAL_THRESHOLD, HIGH_VOLTAGE_ABSOLUTE_THRESHOLD, HIGH_VOLTAGE_PROPORTIONAL_THRESHOLD, LOW_VOLTAGE_ABSOLUTE_THRESHOLD, LOW_VOLTAGE_PROPORTIONAL_THRESHOLD, TAB_VALUES, TabValues } from "./parameters/security-analysis/constants.js";
67
67
  import { SensitivityAnalysisParametersInline } from "./parameters/sensi/sensitivity-analysis-parameters-inline.js";
68
68
  import { SensitivityAnalysisParametersDialog } from "./parameters/sensi/sensitivity-analysis-parameters-dialog.js";
69
- import { COLUMNS_DEFINITIONS_HVDCS, COLUMNS_DEFINITIONS_INJECTIONS, COLUMNS_DEFINITIONS_INJECTIONS_SET, COLUMNS_DEFINITIONS_NODES, COLUMNS_DEFINITIONS_PSTS, EQUIPMENTS_IN_VOLTAGE_REGULATION_TYPES, HVDC_EQUIPMENT_TYPES, INJECTIONS_EQUIPMENT_TYPES, INJECTION_DISTRIBUTION_TYPES, MONITORED_BRANCHES_EQUIPMENT_TYPES, MONITORED_VOLTAGE_LEVELS_EQUIPMENT_TYPES, PSTS_EQUIPMENT_TYPES, SENSITIVITY_TYPES, SensiBranchesTabValues, SensiTabValues } from "./parameters/sensi/columns-definitions.js";
69
+ import { COLUMNS_DEFINITIONS_HVDCS, COLUMNS_DEFINITIONS_INJECTIONS, COLUMNS_DEFINITIONS_INJECTIONS_SET, COLUMNS_DEFINITIONS_NODES, COLUMNS_DEFINITIONS_PSTS, EQUIPMENTS_IN_VOLTAGE_REGULATION_TYPES, HVDC_EQUIPMENT_TYPES, INJECTIONS_EQUIPMENT_TYPES, INJECTION_DISTRIBUTION_TYPES, MONITORED_BRANCHES_EQUIPMENT_TYPES, MONITORED_VOLTAGE_LEVELS_EQUIPMENT_TYPES, PSTS_EQUIPMENT_TYPES, SENSITIVITY_TYPES, SENSI_BRANCHES_TAB_FIELDS, SENSI_TAB_FIELDS, SensiBranchesTabValues, SensiTabValues } from "./parameters/sensi/columns-definitions.js";
70
70
  import { DynamicSimulationInline } from "./parameters/dynamic-simulation/dynamic-simulation-inline.js";
71
71
  import { CONTINGENCIES_LIST_INFOS, CONTINGENCIES_START_TIME, SCENARIO_DURATION } from "./parameters/dynamic-security-analysis/constants.js";
72
72
  import { DynamicSecurityAnalysisInline } from "./parameters/dynamic-security-analysis/dynamic-security-analysis-inline.js";
@@ -122,7 +122,6 @@ import { useHvdcLccDeletion } from "./network-modifications/equipmentDeletion/hv
122
122
  import { HvdcLccDeletionSpecificForm } from "./network-modifications/equipmentDeletion/hvdcLccDeletion/HvdcLccDeletionSpecificForm.js";
123
123
  import { equipmentDeletionDtoToForm, equipmentDeletionEmptyFormData, equipmentDeletionFormSchema, equipmentDeletionFormToDto, newEquipmentDeletionDto } from "./network-modifications/equipmentDeletion/equipmentDeletion.utils.js";
124
124
  import { EquipmentDeletionForm } from "./network-modifications/equipmentDeletion/EquipmentDeletionForm.js";
125
- import { useTabsWithError } from "./network-modifications/hooks/useTabsWithError.js";
126
125
  import { SubstationCreationForm } from "./network-modifications/substation/creation/SubstationCreationForm.js";
127
126
  import { substationCreationDtoToForm, substationCreationEmptyFormData, substationCreationFormSchema, substationCreationFormToDto } from "./network-modifications/substation/creation/substationCreation.utils.js";
128
127
  import { SubstationModificationForm } from "./network-modifications/substation/modification/SubstationModificationForm.js";
@@ -161,14 +160,17 @@ import "../components/ui/snackbarProvider/SnackbarProvider.js";
161
160
  import "mui-nested-menu";
162
161
  import "react-resizable-panels";
163
162
  import "react-papaparse";
164
- import { MAX_SECTIONS_COUNT } from "./network-modifications/voltageLevel/creation/voltageLevel.constants.js";
163
+ import { MAX_SECTIONS_COUNT, VOLTAGE_LEVEL_TAB_FIELDS, VoltageLevelTab } from "./network-modifications/voltageLevel/creation/voltageLevel.constants.js";
165
164
  import { VoltageLevelCreationForm } from "./network-modifications/voltageLevel/creation/VoltageLevelCreationForm.js";
166
165
  import { SWITCH_TYPE, buildNewBusbarSections, getCreateSwitchesEmptyFormData, getCreateSwitchesValidationSchema, translateSwitchKinds, voltageLevelCreationDtoToForm, voltageLevelCreationEmptyFormData, voltageLevelCreationFormSchema, voltageLevelCreationFormToDto } from "./network-modifications/voltageLevel/creation/voltageLevelCreation.utils.js";
167
166
  import { SwitchKind } from "./network-modifications/voltageLevel/creation/voltageLevelCreation.types.js";
168
167
  import { VoltageLevelModificationForm } from "./network-modifications/voltageLevel/modification/VoltageLevelModificationForm.js";
169
168
  import { voltageLevelModificationDtoToForm, voltageLevelModificationEmptyFormData, voltageLevelModificationFormSchema, voltageLevelModificationFormToDto, voltageLevelModificationWithMeasurementsDtoToForm, voltageLevelModificationWithMeasurementsFormSchema, voltageLevelModificationWithMeasurementsFormToDto } from "./network-modifications/voltageLevel/modification/voltageLevelModification.utils.js";
170
- import { createVoltageLevelTopologyDtoToForm, createVoltageLevelTopologyEmptyFormData, createVoltageLevelTopologyFormSchema, createVoltageLevelTopologyFormToDto } from "./network-modifications/voltageLevel/topology/voltageLevelTopologyCreation.utils.js";
171
- import { CreateVoltageLevelTopologyForm } from "./network-modifications/voltageLevel/topology/CreateVoltageLevelTopologyForm.js";
169
+ import { createVoltageLevelTopologyDtoToForm, createVoltageLevelTopologyEmptyFormData, createVoltageLevelTopologyFormSchema, createVoltageLevelTopologyFormToDto } from "./network-modifications/voltageLevel/topology/creation/voltageLevelTopologyCreation.utils.js";
170
+ import { CreateVoltageLevelTopologyForm } from "./network-modifications/voltageLevel/topology/creation/CreateVoltageLevelTopologyForm.js";
171
+ import { voltageLevelTopologyModificationDtoToForm, voltageLevelTopologyModificationEmptyFormData, voltageLevelTopologyModificationFormSchema, voltageLevelTopologyModificationFormToDto } from "./network-modifications/voltageLevel/topology/modification/voltageLevelTopologyModification.utils.js";
172
+ import { VoltageLevelTopologyModificationForm } from "./network-modifications/voltageLevel/topology/modification/VoltageLevelTopologyModificationForm.js";
173
+ import { CURRENT_CONNECTION_STATUS, PREV_CONNECTION_STATUS, SWITCH_ID, TOPOLOGY_MODIFICATION_TABLE } from "./network-modifications/voltageLevel/topology/modification/constants.js";
172
174
  import { VoltageLevelSectionCreationForm } from "./network-modifications/voltageLevel/section/VoltageLevelSectionCreationForm.js";
173
175
  import { POSITION_NEW_SECTION_SIDE, voltageLevelSectionCreationDtoToForm, voltageLevelSectionCreationEmptyFormData, voltageLevelSectionCreationFormSchema, voltageLevelSectionCreationFormToDto } from "./network-modifications/voltageLevel/section/voltageLevelSectionCreation.utils.js";
174
176
  import { FeederBayPositionCellRenderer } from "./network-modifications/voltageLevel/moveFeederBays/feederBay/FeederBayPositionCellRender.js";
@@ -260,6 +262,16 @@ import { getReactiveFormData, getReactiveFormEmptyFormData, getReactiveFormValid
260
262
  import { computeQ0, getStandbyAutomatonEmptyFormData, getStandbyAutomatonFormData, getStandbyAutomatonFormValidationSchema } from "./network-modifications/static-var-compensator/common/standby-automaton-form-utils.js";
261
263
  import { StaticVarCompensatorCreationForm } from "./network-modifications/static-var-compensator/creation/static-var-compensator-creation-form.js";
262
264
  import { staticVarCompensatorCreationEmptyFormData, staticVarCompensatorCreationFormSchema, staticVarCompensatorCreationFormToDto, staticVarCompensatorDtoToForm } from "./network-modifications/static-var-compensator/creation/static-var-compensator-creation-utils.js";
265
+ import { DefineTabularPropertiesDialog } from "./network-modifications/tabular/properties/DefineTabularPropertiesDialog.js";
266
+ import { TabularPropertiesForm } from "./network-modifications/tabular/properties/TabularPropertiesForm.js";
267
+ import { TabularPropertyForm } from "./network-modifications/tabular/properties/TabularPropertyForm.js";
268
+ import { buildPredefinedTabularProperties, emptyTabularProperties, initializedTabularProperty, tabularPropertiesSchema } from "./network-modifications/tabular/properties/tabularProperty.utils.js";
269
+ import { LOAD_TYPES_FOR_LOAD_TABULAR_CREATION_MODIFICATION, PROPERTY_CSV_COLUMN_PREFIX, REGULATING_TERMINAL_TYPES, TABULAR_BOOLEAN, TABULAR_ENUM, TABULAR_NUMBER, TabularFieldConstants } from "./network-modifications/tabular/tabular.constants.js";
270
+ import { TabularModificationType } from "./network-modifications/tabular/tabular.types.js";
271
+ import { addPropertiesFromBack, convertReactiveCapabilityCurvePointsFromBackToFront, convertReactiveCapabilityCurvePointsFromFrontToBack, formatModification, generateCommentLines, getEmptyTabularFormData, getSelectedTabularPropertyNames, isFieldTypeOk, sanitizeRowValue, setFieldTypeError, tabularFormSchema, transformProperties } from "./network-modifications/tabular/tabular.utils.js";
272
+ import { TABULAR_CREATION_FIELDS, TABULAR_CREATION_TYPES, convertCreationFieldFromBackToFront, convertCreationFieldFromFrontToBack, convertCreations, getEquipmentTypeFromCreationType, tabularCreationDtoToForm, tabularCreationFormToDto, transformCreationsTable, transformRowToBackEndCreation } from "./network-modifications/tabular/tabularCreation.utils.js";
273
+ import { MODIFICATION_TRANSFORMATION_STRATEGIES, TABULAR_MODIFICATION_FIELDS, TABULAR_MODIFICATION_TYPES, TWT_TAP_CHANGER_FIELDS, convertGeneratorOrBatteryModificationFromBackToFront, convertGeneratorOrBatteryModificationFromFrontToBack, convertInputValues, convertOutputValues, convertTWTTapChangerModificationFromFrontToBack, getEquipmentTypeFromModificationType, getTabularFieldType, tabularModificationDtoToForm, tabularModificationFormToDto, transformModificationsTable, transformRowToBackEndModification } from "./network-modifications/tabular/tabularModification.utils.js";
274
+ import { TabularForm } from "./network-modifications/tabular/TabularForm.js";
263
275
  import { BuildStatusChip } from "./node/build-status-chip.js";
264
276
  import { BuildStatus } from "./node/constant.js";
265
277
  import { COLUMNS_WITHOUT_BORDER, DEPTH_CELL_WIDTH, DROP_FORBIDDEN_INDICATOR_BOTTOM, DROP_FORBIDDEN_INDICATOR_TOP, DROP_INDICATOR_BOTTOM, DROP_INDICATOR_TOP, MODIFICATION_ROW_HEIGHT, createCellBorderColor, createCellContentWrapperSx, createCellStyle, createEditDescriptionStyle, createHeaderCellStyle, createModificationNameCellStyle, createNameCellLabelBoxSx, createNameCellRootStyle, createRootNetworkChipCellSx, createRowSx, networkModificationTableStyles } from "./network-modification-table/network-modification-table-styles.js";
@@ -363,6 +375,7 @@ export {
363
375
  CONTINGENCY_LISTS,
364
376
  CONTINGENCY_LISTS_INFOS,
365
377
  COUNTRIES_TO_BALANCE,
378
+ CURRENT_CONNECTION_STATUS,
366
379
  CUSTOM_REAL_TIME_STATE_ESTIMATION,
367
380
  CardErrorBoundary,
368
381
  CharacteristicsForm,
@@ -392,6 +405,7 @@ export {
392
405
  DROP_FORBIDDEN_INDICATOR_TOP,
393
406
  DROP_INDICATOR_BOTTOM,
394
407
  DROP_INDICATOR_TOP,
408
+ DefineTabularPropertiesDialog,
395
409
  DepthBox,
396
410
  DescriptionCell,
397
411
  DescriptionCellRenderer,
@@ -456,6 +470,7 @@ export {
456
470
  LOAD_INCREASE_STOP_TIME,
457
471
  LOAD_MODELS_RULE,
458
472
  LOAD_TAB_FIELDS,
473
+ LOAD_TYPES_FOR_LOAD_TABULAR_CREATION_MODIFICATION,
459
474
  LOW_VOLTAGE_ABSOLUTE_THRESHOLD,
460
475
  LOW_VOLTAGE_LIMIT,
461
476
  LOW_VOLTAGE_PROPORTIONAL_THRESHOLD,
@@ -504,6 +519,7 @@ export {
504
519
  MAX_VALUE_ALLOWED_FOR_LIMIT_REDUCTION,
505
520
  MIN_VALUE_ALLOWED_FOR_LIMIT_REDUCTION,
506
521
  MODIFICATION_ROW_HEIGHT,
522
+ MODIFICATION_TRANSFORMATION_STRATEGIES,
507
523
  MONITORED_BRANCHES_EQUIPMENT_TYPES,
508
524
  MONITORED_VOLTAGE_LEVELS_EQUIPMENT_TYPES,
509
525
  ModificationByAssignmentForm,
@@ -514,6 +530,7 @@ export {
514
530
  NAD_POSITIONS_GENERATION_MODE_LABEL,
515
531
  NODE_CLUSTER,
516
532
  NODE_CLUSTER_FILTER_IDS,
533
+ NV_TAB_VALUES,
517
534
  NadPositionsGenerationMode,
518
535
  NameCell,
519
536
  NameCellRenderer,
@@ -546,9 +563,12 @@ export {
546
563
  PARAM_SUBSTATION_LAYOUT,
547
564
  PHASE_SHIFTER_REGULATION_ON,
548
565
  POSITION_NEW_SECTION_SIDE,
566
+ PREV_CONNECTION_STATUS,
549
567
  PRIORITY,
568
+ PROPERTY_CSV_COLUMN_PREFIX,
550
569
  PROVIDER,
551
570
  PSTS_EQUIPMENT_TYPES,
571
+ ParameterField,
552
572
  ParameterFloat,
553
573
  ParameterGroup,
554
574
  ParameterLayout,
@@ -577,6 +597,7 @@ export {
577
597
  RECENT_FILTER,
578
598
  REFERENCE_FIELD_OR_VALUE_1,
579
599
  REFERENCE_FIELD_OR_VALUE_2,
600
+ REGULATING_TERMINAL_TYPES,
580
601
  REGULATION_TYPES,
581
602
  REMOVE,
582
603
  RESULTS_LOADING_DELAY,
@@ -598,6 +619,8 @@ export {
598
619
  SCProcessConfigEditionDialog,
599
620
  SELECTION_TYPE,
600
621
  SENSITIVITY_TYPES,
622
+ SENSI_BRANCHES_TAB_FIELDS,
623
+ SENSI_TAB_FIELDS,
601
624
  SHORTCIRCUIT_ANALYSIS_RESULT_SORT_STORE,
602
625
  SHORT_CIRCUIT_INITIAL_VOLTAGE_PROFILE_MODE,
603
626
  SHORT_CIRCUIT_MODEL_POWER_ELECTRONICS,
@@ -623,6 +646,7 @@ export {
623
646
  STATIC_VAR_COMPENSATOR_TAB_FIELDS,
624
647
  STOP_TIME,
625
648
  SUBSTATION_LAYOUT,
649
+ SWITCH_ID,
626
650
  SWITCH_TYPE,
627
651
  SecurityAnalysisParametersDialog,
628
652
  SecurityAnalysisParametersInline,
@@ -665,12 +689,27 @@ export {
665
689
  SwitchKind,
666
690
  SwitchWithLabel,
667
691
  SwitchesBetweenSections,
692
+ TABULAR_BOOLEAN,
693
+ TABULAR_CREATION_FIELDS,
694
+ TABULAR_CREATION_TYPES,
695
+ TABULAR_ENUM,
696
+ TABULAR_MODIFICATION_FIELDS,
697
+ TABULAR_MODIFICATION_TYPES,
698
+ TABULAR_NUMBER,
699
+ TAB_VALUES,
668
700
  TEMPORARY_LIMIT_MODIFICATION_TYPE,
701
+ TOPOLOGY_MODIFICATION_TABLE,
669
702
  TRANSFORMERS_SELECTION_TYPE,
670
703
  TWT_SPLIT_SHUNT_ADMITTANCE,
671
704
  TWT_TAB_FIELDS,
705
+ TWT_TAP_CHANGER_FIELDS,
672
706
  TabPanel,
673
707
  TabValues,
708
+ TabularFieldConstants,
709
+ TabularForm,
710
+ TabularModificationType,
711
+ TabularPropertiesForm,
712
+ TabularPropertyForm,
674
713
  TapChangerSteps,
675
714
  TemporaryLimitsTable,
676
715
  ToBeEstimatedForm,
@@ -693,8 +732,10 @@ export {
693
732
  VARIATION,
694
733
  VERSION_PARAMETER,
695
734
  VOLTAGE_INIT_MODE,
735
+ VOLTAGE_INIT_TAB_VALUES,
696
736
  VOLTAGE_LEVEL,
697
737
  VOLTAGE_LEVELS_FORM,
738
+ VOLTAGE_LEVEL_TAB_FIELDS,
698
739
  VOLTAGE_LIMITS_DEFAULT,
699
740
  VOLTAGE_LIMITS_MODIFICATION,
700
741
  VOLTAGE_REGULATION_MODES,
@@ -705,12 +746,15 @@ export {
705
746
  VoltageLevelCreationForm,
706
747
  VoltageLevelModificationForm,
707
748
  VoltageLevelSectionCreationForm,
749
+ VoltageLevelTab,
750
+ VoltageLevelTopologyModificationForm,
708
751
  VoltageRegulationForm,
709
752
  WRITE_SLACK_BUS,
710
753
  addGlobalFilterId,
711
754
  addModificationTypeToOpLimitsGroups,
712
755
  addModificationTypeToTemporaryLimits,
713
756
  addOperationTypeToSelectedOpLG,
757
+ addPropertiesFromBack,
714
758
  addSelectedGlobalFiltersToTableState,
715
759
  alertThresholdMarks,
716
760
  batteryCreationDtoToForm,
@@ -722,6 +766,7 @@ export {
722
766
  batteryModificationFormSchema,
723
767
  batteryModificationFormToDto,
724
768
  buildNewBusbarSections,
769
+ buildPredefinedTabularProperties,
725
770
  buildValidGlobalFilters,
726
771
  byFilterDeletionDtoToForm,
727
772
  byFilterDeletionFormSchema,
@@ -735,8 +780,18 @@ export {
735
780
  computeSwitchedOnValue,
736
781
  computeTagMinSize,
737
782
  containsReferenceModification,
783
+ convertCreationFieldFromBackToFront,
784
+ convertCreationFieldFromFrontToBack,
785
+ convertCreations,
738
786
  convertFilterValues,
787
+ convertGeneratorOrBatteryModificationFromBackToFront,
788
+ convertGeneratorOrBatteryModificationFromFrontToBack,
789
+ convertInputValues,
739
790
  convertLimitsToOperationalLimitsGroupFormSchema,
791
+ convertOutputValues,
792
+ convertReactiveCapabilityCurvePointsFromBackToFront,
793
+ convertReactiveCapabilityCurvePointsFromFrontToBack,
794
+ convertTWTTapChangerModificationFromFrontToBack,
740
795
  convertToLineSegmentInfos,
741
796
  convertToLineSegmentsFormData,
742
797
  convertToOperationalLimitsGroupFormSchema,
@@ -771,6 +826,7 @@ export {
771
826
  emptyMoveVoltageLevelFeederBaysFormData,
772
827
  emptyProcessConfigModificationsFormData,
773
828
  emptyProperties,
829
+ emptyTabularProperties,
774
830
  equipmentDeletionDtoToForm,
775
831
  equipmentDeletionEmptyFormData,
776
832
  equipmentDeletionFormSchema,
@@ -785,9 +841,11 @@ export {
785
841
  flattenNmKResultsContingencies,
786
842
  formatComputingTypeLabel,
787
843
  formatMapInfosToTemporaryLimitsFormSchema,
844
+ formatModification,
788
845
  formatOpLimitGroupsToFormInfos,
789
846
  formatTemporaryLimitsModificationToFormSchema,
790
847
  formatToComposedModification,
848
+ generateCommentLines,
791
849
  generateEmptyOperationalLimitsGroup,
792
850
  generateUniqueId,
793
851
  generatorCreationDtoToForm,
@@ -849,6 +907,9 @@ export {
849
907
  getCreateRuleValidationSchema,
850
908
  getCreateSwitchesEmptyFormData,
851
909
  getCreateSwitchesValidationSchema,
910
+ getEmptyTabularFormData,
911
+ getEquipmentTypeFromCreationType,
912
+ getEquipmentTypeFromModificationType,
852
913
  getFilledPropertiesFromModification,
853
914
  getFormulaInitialValue,
854
915
  getFormulaSchema,
@@ -908,6 +969,7 @@ export {
908
969
  getRegulationTypeForEdit,
909
970
  getRegulationTypeLabel,
910
971
  getRowEmptyFormData,
972
+ getSelectedTabularPropertyNames,
911
973
  getSetPointsEmptyFormData,
912
974
  getSetPointsSchema,
913
975
  getShortCircuitEmptyFormData,
@@ -918,6 +980,7 @@ export {
918
980
  getStandbyAutomatonFormValidationSchema,
919
981
  getTabIndicatorStyle,
920
982
  getTabStyle,
983
+ getTabularFieldType,
921
984
  getTapChangerEquipmentSectionTypeValue,
922
985
  getTapSideForEdit,
923
986
  getTapSideLabel,
@@ -933,12 +996,14 @@ export {
933
996
  initializeAuthenticationDev,
934
997
  initializeAuthenticationProd,
935
998
  initializedProperty,
999
+ initializedTabularProperty,
936
1000
  intlInitialVoltageProfileMode,
937
1001
  intlPredefinedParametersOptions,
938
1002
  isCompositeModification,
939
1003
  isCriteriaFilter,
940
1004
  isCriteriaFilterType,
941
1005
  isEditingGlobalFilter,
1006
+ isFieldTypeOk,
942
1007
  isProcessType,
943
1008
  isReferenceModification,
944
1009
  isValidComputingType,
@@ -992,7 +1057,9 @@ export {
992
1057
  sanitizeLimitNames,
993
1058
  sanitizeLimitsGroups,
994
1059
  sanitizePercentageValue,
1060
+ sanitizeRowValue,
995
1061
  setCurrentReactiveCapabilityCurveTable,
1062
+ setFieldTypeError,
996
1063
  setSelectedReactiveLimits,
997
1064
  shuntCompensatorCreationDtoToForm,
998
1065
  shuntCompensatorCreationEmptyFormData,
@@ -1016,6 +1083,12 @@ export {
1016
1083
  substationModificationFormSchema,
1017
1084
  substationModificationFormToDto,
1018
1085
  syncGlobalFilters,
1086
+ tabularCreationDtoToForm,
1087
+ tabularCreationFormToDto,
1088
+ tabularFormSchema,
1089
+ tabularModificationDtoToForm,
1090
+ tabularModificationFormToDto,
1091
+ tabularPropertiesSchema,
1019
1092
  testValueWithinPowerInterval,
1020
1093
  textFilterParams,
1021
1094
  toBeEstimatedEmptyFormData,
@@ -1025,6 +1098,11 @@ export {
1025
1098
  toReactiveCapabilityCurveChoiceForGeneratorCreation,
1026
1099
  toReactiveCapabilityCurveChoiceForGeneratorModification,
1027
1100
  toTapChangerStepList,
1101
+ transformCreationsTable,
1102
+ transformModificationsTable,
1103
+ transformProperties,
1104
+ transformRowToBackEndCreation,
1105
+ transformRowToBackEndModification,
1028
1106
  translateSwitchKinds,
1029
1107
  twoWindingsTransformerCreationDtoToForm,
1030
1108
  twoWindingsTransformerCreationEmptyFormData,
@@ -1045,8 +1123,6 @@ export {
1045
1123
  useNotificationsListener,
1046
1124
  useParameterLayoutContext,
1047
1125
  useParametersForm,
1048
- useTabs,
1049
- useTabsWithError,
1050
1126
  voltageLevelCreationDtoToForm,
1051
1127
  voltageLevelCreationEmptyFormData,
1052
1128
  voltageLevelCreationFormSchema,
@@ -1061,5 +1137,9 @@ export {
1061
1137
  voltageLevelSectionCreationDtoToForm,
1062
1138
  voltageLevelSectionCreationEmptyFormData,
1063
1139
  voltageLevelSectionCreationFormSchema,
1064
- voltageLevelSectionCreationFormToDto
1140
+ voltageLevelSectionCreationFormToDto,
1141
+ voltageLevelTopologyModificationDtoToForm,
1142
+ voltageLevelTopologyModificationEmptyFormData,
1143
+ voltageLevelTopologyModificationFormSchema,
1144
+ voltageLevelTopologyModificationFormToDto
1065
1145
  };
@@ -17,6 +17,7 @@ import "localized-countries";
17
17
  import "localized-countries/data/fr";
18
18
  import "localized-countries/data/en";
19
19
  import "notistack";
20
+ import "react-hook-form";
20
21
  import { ModificationRow } from "./row/modification-row.js";
21
22
  function NetworkModificationsTable({
22
23
  modifications,
@@ -12,8 +12,8 @@ import "localized-countries";
12
12
  import "localized-countries/data/fr";
13
13
  import "localized-countries/data/en";
14
14
  import { useSnackMessage } from "../../../hooks/useSnackMessage.js";
15
- import "../../../components/ui/overflowableText/OverflowableText.js";
16
15
  import "react-hook-form";
16
+ import "../../../components/ui/overflowableText/OverflowableText.js";
17
17
  import "../../../components/ui/reactHookForm/provider/CustomFormProvider.js";
18
18
  import "yup";
19
19
  import { CustomTooltip } from "../../../components/ui/tooltip/CustomTooltip.js";
@@ -13,6 +13,7 @@ import "localized-countries";
13
13
  import "localized-countries/data/fr";
14
14
  import "localized-countries/data/en";
15
15
  import { useSnackMessage } from "../../../hooks/useSnackMessage.js";
16
+ import "react-hook-form";
16
17
  function getUpdatedExcludedModifications(prev, rootNetworkUuid, modificationUuid) {
17
18
  const exists = prev.some((item) => item.rootNetworkUuid === rootNetworkUuid);
18
19
  if (exists) {
@@ -11,6 +11,7 @@ import "localized-countries";
11
11
  import "localized-countries/data/fr";
12
12
  import "localized-countries/data/en";
13
13
  import { useSnackMessage } from "../../../hooks/useSnackMessage.js";
14
+ import "react-hook-form";
14
15
  function SwitchCell(props) {
15
16
  const { data, studyUuid, currentNodeId, isDisabled = false } = props;
16
17
  const [isLoading, setIsLoading] = useState(false);
@@ -12,6 +12,7 @@ import "localized-countries";
12
12
  import "localized-countries/data/fr";
13
13
  import "localized-countries/data/en";
14
14
  import "notistack";
15
+ import "react-hook-form";
15
16
  function DragCloneRow({ row }) {
16
17
  const intl = useIntl();
17
18
  const { computeLabel } = useModificationLabelComputer();
@@ -18,6 +18,7 @@ import "localized-countries";
18
18
  import "localized-countries/data/fr";
19
19
  import "localized-countries/data/en";
20
20
  import { useSnackMessage } from "../../hooks/useSnackMessage.js";
21
+ import "react-hook-form";
21
22
  const clearRowDragIndicators = (container) => {
22
23
  const rowElements = container?.querySelectorAll("[data-row-id]");
23
24
  rowElements?.forEach((rowElement) => {
@@ -1,8 +1,8 @@
1
- import { default as React } from 'react';
1
+ import { SyntheticEvent } from 'react';
2
2
  interface BatteryDialogTabsProps {
3
3
  tabIndex: number;
4
4
  tabIndexesWithError: number[];
5
- setTabIndex: (newTabIndex: number) => void;
5
+ onTabChange: (event: SyntheticEvent<Element, Event>, newValue: number) => void;
6
6
  }
7
- export declare function BatteryDialogTabs({ tabIndex, tabIndexesWithError, setTabIndex }: Readonly<BatteryDialogTabsProps>): React.JSX.Element;
7
+ export declare function BatteryDialogTabs({ tabIndex, tabIndexesWithError, onTabChange }: Readonly<BatteryDialogTabsProps>): import("react").JSX.Element;
8
8
  export {};