@gridsuite/commons-ui 0.270.0 → 0.272.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 (186) hide show
  1. package/dist/components/composite/customAGGrid/custom-aggrid-types.d.ts +7 -0
  2. package/dist/components/composite/dnd-table/deletable-table-row.d.ts +2 -1
  3. package/dist/components/composite/dnd-table/deletable-table-row.js +3 -1
  4. package/dist/components/composite/dnd-table/dnd-table-row.d.ts +2 -1
  5. package/dist/components/composite/dnd-table/dnd-table-row.js +29 -4
  6. package/dist/components/composite/dnd-table/dnd-table.d.ts +1 -0
  7. package/dist/components/composite/dnd-table/dnd-table.js +13 -3
  8. package/dist/components/composite/dnd-table/dnd-table.type.d.ts +1 -0
  9. package/dist/components/composite/report/report-viewer/context/report-viewer-context.d.ts +4 -4
  10. package/dist/components/composite/report/report-viewer/log-table/log-table.js +8 -7
  11. package/dist/components/composite/report/report.type.d.ts +0 -4
  12. package/dist/components/ui/addButton/AddButton.js +9 -1
  13. package/dist/components/ui/dialogs/customMuiDialog/CustomMuiDialog.d.ts +10 -3
  14. package/dist/components/ui/dialogs/customMuiDialog/CustomMuiDialog.js +33 -28
  15. package/dist/components/ui/reactHookForm/DirectoryItemsInput.d.ts +2 -1
  16. package/dist/components/ui/reactHookForm/DirectoryItemsInput.js +3 -1
  17. package/dist/components/ui/reactHookForm/autocompleteInputs/AutocompleteInput.d.ts +2 -1
  18. package/dist/components/ui/reactHookForm/autocompleteInputs/AutocompleteInput.js +2 -0
  19. package/dist/components/ui/reactHookForm/booleans/BooleanInput.d.ts +2 -1
  20. package/dist/components/ui/reactHookForm/booleans/BooleanInput.js +3 -1
  21. package/dist/components/ui/reactHookForm/booleans/SwitchInput.d.ts +2 -1
  22. package/dist/components/ui/reactHookForm/booleans/SwitchInput.js +12 -2
  23. package/dist/components/ui/reactHookForm/chip-items-input.d.ts +2 -1
  24. package/dist/components/ui/reactHookForm/chip-items-input.js +2 -1
  25. package/dist/components/ui/reactHookForm/expandableInput/DeletableRow.d.ts +2 -1
  26. package/dist/components/ui/reactHookForm/expandableInput/DeletableRow.js +3 -1
  27. package/dist/components/ui/reactHookForm/expandableInput/ExpandableInput.d.ts +2 -0
  28. package/dist/components/ui/reactHookForm/expandableInput/ExpandableInput.js +13 -2
  29. package/dist/components/ui/reactHookForm/tableInputs/table-text-input.d.ts +2 -1
  30. package/dist/components/ui/reactHookForm/tableInputs/table-text-input.js +2 -1
  31. package/dist/features/common/index.d.ts +1 -0
  32. package/dist/features/common/types.d.ts +32 -0
  33. package/dist/features/index.d.ts +2 -0
  34. package/dist/features/index.js +110 -4
  35. package/dist/features/network-modifications/common/branch/branchCreation.types.d.ts +26 -0
  36. package/dist/features/network-modifications/common/branch/branchCreation.types.js +1 -0
  37. package/dist/features/network-modifications/common/branch/branchModification.types.d.ts +36 -0
  38. package/dist/features/network-modifications/common/branch/branchModification.types.js +1 -0
  39. package/dist/features/network-modifications/{line/characteristics/lineCharacteristicsPane.types.d.ts → common/branch/index.d.ts} +2 -8
  40. package/dist/features/network-modifications/common/branch/index.js +1 -0
  41. package/dist/features/network-modifications/common/connectivity/VoltageLevelConnectivityForm.js +4 -2
  42. package/dist/features/network-modifications/common/connectivity/connectivityForm.utils.d.ts +2 -0
  43. package/dist/features/network-modifications/common/currentLimits/limits.types.d.ts +1 -0
  44. package/dist/features/network-modifications/common/currentLimits/limitsPane.utils.d.ts +2 -2
  45. package/dist/features/network-modifications/common/index.d.ts +1 -0
  46. package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/reactiveCapability.utils.js +1 -1
  47. package/dist/features/network-modifications/common/regulatingTerminal/regulatingTerminal.utils.d.ts +2 -2
  48. package/dist/features/network-modifications/common/regulatingTerminal/regulatingTerminal.utils.js +2 -2
  49. package/dist/features/network-modifications/index.d.ts +1 -0
  50. package/dist/features/network-modifications/index.js +87 -2
  51. package/dist/features/network-modifications/line/characteristics/index.d.ts +0 -1
  52. package/dist/features/network-modifications/line/characteristics/index.js +1 -2
  53. package/dist/features/network-modifications/line/characteristics/lineCharacteristicsPane.utils.d.ts +4 -19
  54. package/dist/features/network-modifications/line/characteristics/lineCharacteristicsPane.utils.js +0 -14
  55. package/dist/features/network-modifications/line/creation/lineCreation.types.d.ts +6 -26
  56. package/dist/features/network-modifications/line/index.js +1 -2
  57. package/dist/features/network-modifications/line/modification/lineModification.types.d.ts +3 -35
  58. package/dist/features/network-modifications/twoWindingsTransformer/characteristics/TwoWindingsTransformerCharacteristicsPane.d.ts +7 -0
  59. package/dist/features/network-modifications/twoWindingsTransformer/characteristics/TwoWindingsTransformerCharacteristicsPane.js +168 -0
  60. package/dist/features/network-modifications/twoWindingsTransformer/characteristics/index.d.ts +8 -0
  61. package/dist/features/network-modifications/twoWindingsTransformer/characteristics/index.js +8 -0
  62. package/dist/features/network-modifications/twoWindingsTransformer/characteristics/twoWindingsTransformerCharacteristicsPane.utils.d.ts +41 -0
  63. package/dist/features/network-modifications/twoWindingsTransformer/characteristics/twoWindingsTransformerCharacteristicsPane.utils.js +51 -0
  64. package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerDialogHeader.d.ts +6 -0
  65. package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerDialogHeader.js +123 -0
  66. package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerDialogTabs.d.ts +9 -0
  67. package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerDialogTabs.js +89 -0
  68. package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerDialogTabsContent.d.ts +14 -0
  69. package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerDialogTabsContent.js +118 -0
  70. package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerForm.d.ts +6 -0
  71. package/dist/features/network-modifications/twoWindingsTransformer/common/TwoWindingsTransformerForm.js +47 -0
  72. package/dist/features/network-modifications/twoWindingsTransformer/common/index.d.ts +12 -0
  73. package/dist/features/network-modifications/twoWindingsTransformer/common/index.js +13 -0
  74. package/dist/features/network-modifications/twoWindingsTransformer/common/twoWindingsTransformer.types.d.ts +87 -0
  75. package/dist/features/network-modifications/twoWindingsTransformer/common/twoWindingsTransformer.types.js +1 -0
  76. package/dist/features/network-modifications/twoWindingsTransformer/common/twoWindingsTransformer.utils.d.ts +10 -0
  77. package/dist/features/network-modifications/twoWindingsTransformer/common/twoWindingsTransformer.utils.js +50 -0
  78. package/dist/features/network-modifications/twoWindingsTransformer/creation/index.d.ts +8 -0
  79. package/dist/features/network-modifications/twoWindingsTransformer/creation/index.js +12 -0
  80. package/dist/features/network-modifications/twoWindingsTransformer/creation/twoWindingsTransformerCreation.types.d.ts +47 -0
  81. package/dist/features/network-modifications/twoWindingsTransformer/creation/twoWindingsTransformerCreation.types.js +8 -0
  82. package/dist/features/network-modifications/twoWindingsTransformer/creation/twoWindingsTransformerCreation.utils.d.ts +248 -0
  83. package/dist/features/network-modifications/twoWindingsTransformer/creation/twoWindingsTransformerCreation.utils.js +325 -0
  84. package/dist/features/network-modifications/twoWindingsTransformer/index.d.ts +11 -0
  85. package/dist/features/network-modifications/twoWindingsTransformer/index.js +88 -0
  86. package/dist/features/network-modifications/twoWindingsTransformer/modification/index.d.ts +9 -0
  87. package/dist/features/network-modifications/twoWindingsTransformer/modification/index.js +10 -0
  88. package/dist/features/network-modifications/twoWindingsTransformer/modification/measurements/ToBeEstimatedForm.d.ts +6 -0
  89. package/dist/features/network-modifications/twoWindingsTransformer/modification/measurements/ToBeEstimatedForm.js +104 -0
  90. package/dist/features/network-modifications/twoWindingsTransformer/modification/measurements/index.d.ts +9 -0
  91. package/dist/features/network-modifications/twoWindingsTransformer/modification/measurements/index.js +7 -0
  92. package/dist/features/network-modifications/twoWindingsTransformer/modification/measurements/toBeEstimated.type.d.ts +10 -0
  93. package/dist/features/network-modifications/twoWindingsTransformer/modification/measurements/toBeEstimated.type.js +1 -0
  94. package/dist/features/network-modifications/twoWindingsTransformer/modification/measurements/toBeEstimated.utils.d.ts +12 -0
  95. package/dist/features/network-modifications/twoWindingsTransformer/modification/measurements/toBeEstimated.utils.js +18 -0
  96. package/dist/features/network-modifications/twoWindingsTransformer/modification/twoWindingsTransformerModification.types.d.ts +39 -0
  97. package/dist/features/network-modifications/twoWindingsTransformer/modification/twoWindingsTransformerModification.types.js +1 -0
  98. package/dist/features/network-modifications/twoWindingsTransformer/modification/twoWindingsTransformerModification.utils.d.ts +265 -0
  99. package/dist/features/network-modifications/twoWindingsTransformer/modification/twoWindingsTransformerModification.utils.js +100 -0
  100. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/RegulatedTerminalSection.d.ts +13 -0
  101. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/RegulatedTerminalSection.js +130 -0
  102. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/TapChangerSteps.d.ts +20 -0
  103. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/TapChangerSteps.js +311 -0
  104. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/index.d.ts +12 -0
  105. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/index.js +53 -0
  106. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/PhaseTapChangerPane.d.ts +2 -0
  107. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/PhaseTapChangerPane.js +198 -0
  108. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/PhaseTapChangerPaneSteps.d.ts +9 -0
  109. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/PhaseTapChangerPaneSteps.js +201 -0
  110. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/index.d.ts +9 -0
  111. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/index.js +15 -0
  112. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/phaseTapChanger.utils.d.ts +114 -0
  113. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/phaseTapChanger/phaseTapChanger.utils.js +242 -0
  114. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/RatioTapChangerPane.d.ts +2 -0
  115. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/RatioTapChangerPane.js +283 -0
  116. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/RatioTapChangerPaneSteps.d.ts +9 -0
  117. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/RatioTapChangerPaneSteps.js +181 -0
  118. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/index.d.ts +9 -0
  119. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/index.js +18 -0
  120. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/ratioTapChanger.utils.d.ts +132 -0
  121. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/ratioTapChanger/ratioTapChanger.utils.js +211 -0
  122. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/CreateRuleDialog.d.ts +2 -0
  123. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/CreateRuleDialog.js +102 -0
  124. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/CreateRuleDialogSubmitButton.d.ts +7 -0
  125. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/CreateRuleDialogSubmitButton.js +22 -0
  126. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/CreateRuleForm.d.ts +6 -0
  127. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/CreateRuleForm.js +86 -0
  128. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/ImportRuleDialog.d.ts +10 -0
  129. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/ImportRuleDialog.js +140 -0
  130. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/index.d.ts +12 -0
  131. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/index.js +13 -0
  132. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/regulationRule.types.d.ts +12 -0
  133. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/regulationRule.types.js +1 -0
  134. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/regulationRule.utils.d.ts +9 -0
  135. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/regulationRule/regulationRule.utils.js +19 -0
  136. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/tapChanger.utils.d.ts +14 -0
  137. package/dist/features/network-modifications/twoWindingsTransformer/tapChanger/tapChanger.utils.js +79 -0
  138. package/dist/features/results/common/index.d.ts +7 -0
  139. package/dist/features/results/common/index.js +5 -0
  140. package/dist/features/results/common/utils.d.ts +5 -0
  141. package/dist/features/results/common/utils.js +18 -0
  142. package/dist/features/results/securityanalysis/index.js +1 -2
  143. package/dist/features/results/securityanalysis/security-analysis-result-nmk.js +3 -2
  144. package/dist/features/results/securityanalysis/utils.d.ts +0 -1
  145. package/dist/features/results/securityanalysis/utils.js +0 -2
  146. package/dist/features/results/shortcircuit/index.d.ts +11 -0
  147. package/dist/features/results/shortcircuit/index.js +21 -0
  148. package/dist/features/results/shortcircuit/shortcircuit-analysis-all-buses-result.d.ts +4 -0
  149. package/dist/features/results/shortcircuit/shortcircuit-analysis-all-buses-result.js +25 -0
  150. package/dist/features/results/shortcircuit/shortcircuit-analysis-result-content.d.ts +13 -0
  151. package/dist/features/results/shortcircuit/shortcircuit-analysis-result-content.js +62 -0
  152. package/dist/features/results/shortcircuit/shortcircuit-analysis-result-table.d.ts +41 -0
  153. package/dist/features/results/shortcircuit/shortcircuit-analysis-result-table.js +451 -0
  154. package/dist/features/results/shortcircuit/shortcircuit-analysis-result.d.ts +53 -0
  155. package/dist/features/results/shortcircuit/shortcircuit-analysis-result.js +252 -0
  156. package/dist/features/results/shortcircuit/shortcircuit-analysis-result.type.d.ts +41 -0
  157. package/dist/features/results/shortcircuit/shortcircuit-analysis-result.type.js +8 -0
  158. package/dist/index.js +121 -8
  159. package/dist/translations/en/filterExpertEn.d.ts +0 -3
  160. package/dist/translations/en/filterExpertEn.js +0 -3
  161. package/dist/translations/en/network-modification-validationEn.d.ts +1 -0
  162. package/dist/translations/en/network-modification-validationEn.js +2 -1
  163. package/dist/translations/en/networkModificationsEn.d.ts +70 -9
  164. package/dist/translations/en/networkModificationsEn.js +71 -10
  165. package/dist/translations/fr/filterExpertFr.d.ts +0 -3
  166. package/dist/translations/fr/filterExpertFr.js +0 -3
  167. package/dist/translations/fr/network-modification-validationFr.d.ts +1 -0
  168. package/dist/translations/fr/network-modification-validationFr.js +2 -1
  169. package/dist/translations/fr/networkModificationsFr.d.ts +70 -9
  170. package/dist/translations/fr/networkModificationsFr.js +71 -10
  171. package/dist/utils/constants/fieldConstants.d.ts +37 -0
  172. package/dist/utils/constants/fieldConstants.js +37 -0
  173. package/dist/utils/constants/index.js +2 -1
  174. package/dist/utils/constants/translationKeys.d.ts +1 -0
  175. package/dist/utils/constants/translationKeys.js +2 -0
  176. package/dist/utils/functions.d.ts +9 -0
  177. package/dist/utils/functions.js +40 -0
  178. package/dist/utils/index.js +11 -4
  179. package/dist/utils/langs.d.ts +1 -0
  180. package/dist/utils/langs.js +9 -1
  181. package/dist/utils/types/equipmentType.d.ts +34 -0
  182. package/dist/utils/types/equipmentType.js +28 -0
  183. package/dist/utils/types/index.d.ts +1 -1
  184. package/dist/utils/types/index.js +4 -1
  185. package/package.json +1 -1
  186. /package/dist/features/{network-modifications/line/characteristics/lineCharacteristicsPane.types.js → common/types.js} +0 -0
@@ -0,0 +1,22 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { Button } from "@mui/material";
3
+ import { useFormContext, useWatch } from "react-hook-form";
4
+ import { FormattedMessage } from "react-intl";
5
+ import { FieldConstants } from "../../../../../utils/constants/fieldConstants.js";
6
+ import "../../../../../utils/conversionUtils.js";
7
+ import "../../../../../utils/types/equipmentType.js";
8
+ import "@mui/icons-material";
9
+ function CreateRuleDialogSubmitButton({
10
+ handleSave,
11
+ allowNegativeValues
12
+ }) {
13
+ const { handleSubmit } = useFormContext();
14
+ const [lowTapPosition, highTapPosition] = useWatch({
15
+ name: [FieldConstants.LOW_TAP_POSITION, FieldConstants.HIGH_TAP_POSITION]
16
+ });
17
+ const isTapValuesInvalid = highTapPosition == null || lowTapPosition == null || !allowNegativeValues && highTapPosition <= 0 || !allowNegativeValues && lowTapPosition <= 0 || highTapPosition === lowTapPosition;
18
+ return /* @__PURE__ */ jsx(Button, { onClick: handleSubmit(handleSave), variant: "outlined", disabled: isTapValuesInvalid, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "validate" }) });
19
+ }
20
+ export {
21
+ CreateRuleDialogSubmitButton
22
+ };
@@ -0,0 +1,6 @@
1
+ import { FieldConstants } from '../../../../../utils';
2
+ interface CreateRuleFormProps {
3
+ tapChanger: FieldConstants.PHASE_TAP_CHANGER | FieldConstants.RATIO_TAP_CHANGER;
4
+ }
5
+ export declare function CreateRuleForm({ tapChanger }: Readonly<CreateRuleFormProps>): import("react").JSX.Element;
6
+ export {};
@@ -0,0 +1,86 @@
1
+ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
+ import { DialogTitle, DialogContent, Stack, Box } from "@mui/material";
3
+ import { FormattedMessage } from "react-intl";
4
+ import "@mui/icons-material";
5
+ import "../../../../../components/ui/overflowableText/OverflowableText.js";
6
+ import { FieldConstants } from "../../../../../utils/constants/fieldConstants.js";
7
+ import "../../../../../utils/conversionUtils.js";
8
+ import "../../../../../utils/types/equipmentType.js";
9
+ import "react";
10
+ import "react-hook-form";
11
+ import "localized-countries";
12
+ import "localized-countries/data/fr";
13
+ import "localized-countries/data/en";
14
+ import "notistack";
15
+ import "../../../../../components/ui/reactHookForm/provider/CustomFormProvider.js";
16
+ import "yup";
17
+ import "../../../../../components/ui/treeViewFinder/TreeViewFinder.js";
18
+ import { FloatInput } from "../../../../../components/ui/reactHookForm/numbers/FloatInput.js";
19
+ import "../../../../../components/ui/reactHookForm/numbers/RangeInput.js";
20
+ import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
21
+ import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
22
+ import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
23
+ import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
24
+ import "@material-symbols/svg-400/outlined/add_notes-fill.svg?react";
25
+ import "../../../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
26
+ import "../../../../../components/ui/reactHookForm/expandableInput/ExpandableInput.js";
27
+ import "../../../../../components/ui/reactHookForm/directory-item-input/directory-item-utils.js";
28
+ import "@hello-pangea/dnd";
29
+ import "../../../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
30
+ import "../../../../../components/ui/snackbarProvider/SnackbarProvider.js";
31
+ import "mui-nested-menu";
32
+ import "react-resizable-panels";
33
+ import "react-papaparse";
34
+ import "react-dom";
35
+ import "autosuggest-highlight/match";
36
+ import "autosuggest-highlight/parse";
37
+ import "clsx";
38
+ import "../../../../../components/composite/filter/FilterCreationDialog.js";
39
+ import "../../../../../components/composite/filter/HeaderFilterForm.js";
40
+ import "../../../../../components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js";
41
+ import "../../../../../components/composite/filter/expert/ExpertFilterForm.js";
42
+ import "../../../../../components/composite/filter/expert/ExpertFilterEditionDialog.js";
43
+ import "../../../../../components/composite/filter/expert/expertFilterConstants.js";
44
+ import "react-querybuilder";
45
+ import "uuid";
46
+ import "../../../../../components/composite/filter/explicitNaming/ExplicitNamingFilterEditionDialog.js";
47
+ import "../../../../../components/composite/filter/utils/filterFormUtils.js";
48
+ import "@react-querybuilder/material";
49
+ import "../../../../../components/composite/reactQueryBuilder/CustomReactQueryBuilder.js";
50
+ import "../../../../../components/composite/reactQueryBuilder/PropertyValueEditor.js";
51
+ import "../../../../../components/composite/agGridTable/BottomTableButtons.js";
52
+ import "../../../../../components/composite/agGridTable/CustomAgGridTable.js";
53
+ import "ag-grid-community";
54
+ import "../../../../../components/composite/customAGGrid/customAggrid.js";
55
+ import "../../../../../components/composite/customAGGrid/context/custom-aggrid-context.js";
56
+ import "mathjs";
57
+ import "../../../../../components/composite/report/report-viewer/log-table/log-table.js";
58
+ import "react-window";
59
+ import "../../../../../components/composite/report/report-treeview/treeview-item.js";
60
+ import "../../../../../components/composite/report/report-viewer/context/report-viewer-context.js";
61
+ const TAP_LABELS = {
62
+ [FieldConstants.PHASE_TAP_CHANGER]: {
63
+ low: "LowTapAlpha",
64
+ high: "HighTapAlpha",
65
+ title: "CreateDephasingRule"
66
+ },
67
+ [FieldConstants.RATIO_TAP_CHANGER]: {
68
+ low: "LowTapRatio",
69
+ high: "HighTapRatio",
70
+ title: "CreateRegulationRule"
71
+ }
72
+ };
73
+ const DIALOG_CONTENT_STYLE = { paddingTop: "5px" };
74
+ function CreateRuleForm({ tapChanger }) {
75
+ const labels = TAP_LABELS[tapChanger] ?? { low: "", high: "", title: "" };
76
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
77
+ /* @__PURE__ */ jsx(DialogTitle, { children: /* @__PURE__ */ jsx(FormattedMessage, { id: labels.title }) }),
78
+ /* @__PURE__ */ jsx(DialogContent, { children: /* @__PURE__ */ jsxs(Stack, { spacing: 2, sx: DIALOG_CONTENT_STYLE, children: [
79
+ /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(FloatInput, { label: labels.low, name: FieldConstants.LOW_TAP_POSITION }) }),
80
+ /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(FloatInput, { label: labels.high, name: FieldConstants.HIGH_TAP_POSITION }) })
81
+ ] }) })
82
+ ] });
83
+ }
84
+ export {
85
+ CreateRuleForm
86
+ };
@@ -0,0 +1,10 @@
1
+ import { default as Papa } from 'papaparse';
2
+ import { FieldConstants } from '../../../../../utils';
3
+ export interface ImportRuleDialogProps {
4
+ tapChanger: FieldConstants.PHASE_TAP_CHANGER | FieldConstants.RATIO_TAP_CHANGER;
5
+ openImportRuleDialog: boolean;
6
+ setOpenImportRuleDialog: (open: boolean) => void;
7
+ csvColumns: string[];
8
+ handleImportTapRule: (results: Papa.ParseResult<Record<string, string>>) => void;
9
+ }
10
+ export declare function ImportRuleDialog({ tapChanger, openImportRuleDialog, setOpenImportRuleDialog, csvColumns, handleImportTapRule, }: ImportRuleDialogProps): import("react").JSX.Element;
@@ -0,0 +1,140 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { Dialog, DialogTitle, DialogContent, Stack, Grid, Button, Alert, DialogActions } from "@mui/material";
3
+ import { useState, useEffect, useMemo } from "react";
4
+ import { useIntl, FormattedMessage } from "react-intl";
5
+ import { useCSVDownloader } from "react-papaparse";
6
+ import { FieldConstants } from "../../../../../utils/constants/fieldConstants.js";
7
+ import "../../../../../utils/conversionUtils.js";
8
+ import "../../../../../utils/types/equipmentType.js";
9
+ import { transformIfFrenchNumber, getCsvDelimiter } from "../../../../../utils/langs.js";
10
+ import "@mui/icons-material";
11
+ import "../../../../../components/ui/overflowableText/OverflowableText.js";
12
+ import "react-hook-form";
13
+ import "localized-countries";
14
+ import "localized-countries/data/fr";
15
+ import "localized-countries/data/en";
16
+ import "notistack";
17
+ import "../../../../../components/ui/reactHookForm/provider/CustomFormProvider.js";
18
+ import { CancelButton } from "../../../../../components/ui/reactHookForm/utils/CancelButton.js";
19
+ import "yup";
20
+ import "../../../../../components/ui/treeViewFinder/TreeViewFinder.js";
21
+ import "../../../../../components/ui/reactHookForm/numbers/RangeInput.js";
22
+ import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
23
+ import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
24
+ import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
25
+ import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
26
+ import "@material-symbols/svg-400/outlined/add_notes-fill.svg?react";
27
+ import "../../../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
28
+ import "../../../../../components/ui/reactHookForm/expandableInput/ExpandableInput.js";
29
+ import "../../../../../components/ui/reactHookForm/directory-item-input/directory-item-utils.js";
30
+ import "@hello-pangea/dnd";
31
+ import "../../../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
32
+ import "../../../../../components/ui/snackbarProvider/SnackbarProvider.js";
33
+ import "mui-nested-menu";
34
+ import "react-resizable-panels";
35
+ import { CsvPicker } from "../../../../../components/ui/csvPicker/csv-picker.js";
36
+ import "react-dom";
37
+ import { MAX_ROWS_NUMBER } from "../../../../../components/composite/dnd-table/dnd-table.type.js";
38
+ import "autosuggest-highlight/match";
39
+ import "autosuggest-highlight/parse";
40
+ import "clsx";
41
+ import "../../../../../components/composite/filter/FilterCreationDialog.js";
42
+ import "../../../../../components/composite/filter/HeaderFilterForm.js";
43
+ import "../../../../../components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js";
44
+ import "../../../../../components/composite/filter/expert/ExpertFilterForm.js";
45
+ import "../../../../../components/composite/filter/expert/ExpertFilterEditionDialog.js";
46
+ import "../../../../../components/composite/filter/expert/expertFilterConstants.js";
47
+ import "react-querybuilder";
48
+ import "uuid";
49
+ import "../../../../../components/composite/filter/explicitNaming/ExplicitNamingFilterEditionDialog.js";
50
+ import "../../../../../components/composite/filter/utils/filterFormUtils.js";
51
+ import "@react-querybuilder/material";
52
+ import "../../../../../components/composite/reactQueryBuilder/CustomReactQueryBuilder.js";
53
+ import "../../../../../components/composite/reactQueryBuilder/PropertyValueEditor.js";
54
+ import "../../../../../components/composite/agGridTable/BottomTableButtons.js";
55
+ import "../../../../../components/composite/agGridTable/CustomAgGridTable.js";
56
+ import "ag-grid-community";
57
+ import "../../../../../components/composite/customAGGrid/customAggrid.js";
58
+ import "../../../../../components/composite/customAGGrid/context/custom-aggrid-context.js";
59
+ import "mathjs";
60
+ import "../../../../../components/composite/report/report-viewer/log-table/log-table.js";
61
+ import "react-window";
62
+ import "../../../../../components/composite/report/report-treeview/treeview-item.js";
63
+ import "../../../../../components/composite/report/report-viewer/context/report-viewer-context.js";
64
+ const NO_REQUIRED_COLUMNS = [];
65
+ function ImportRuleDialog({
66
+ tapChanger,
67
+ openImportRuleDialog,
68
+ setOpenImportRuleDialog,
69
+ csvColumns,
70
+ handleImportTapRule
71
+ }) {
72
+ const { locale } = useIntl();
73
+ const { CSVDownloader } = useCSVDownloader();
74
+ const [selectedFile, setSelectedFile] = useState();
75
+ const [fileErrorMessage, setFileErrorMessage] = useState();
76
+ const [parsedResults, setParsedResults] = useState();
77
+ const language = locale;
78
+ useEffect(() => {
79
+ setSelectedFile(void 0);
80
+ setFileErrorMessage(void 0);
81
+ setParsedResults(void 0);
82
+ }, [openImportRuleDialog]);
83
+ const parseConfig = useMemo(
84
+ () => ({ transform: (value) => transformIfFrenchNumber(value, language) }),
85
+ [language]
86
+ );
87
+ const handleCloseDialog = () => {
88
+ setOpenImportRuleDialog(false);
89
+ };
90
+ const handleSave = () => {
91
+ if (!fileErrorMessage && parsedResults) {
92
+ handleImportTapRule(parsedResults);
93
+ handleCloseDialog();
94
+ }
95
+ };
96
+ const isInvalid = useMemo(() => {
97
+ return typeof parsedResults === "undefined" || typeof fileErrorMessage !== "undefined";
98
+ }, [parsedResults, fileErrorMessage]);
99
+ return /* @__PURE__ */ jsxs(Dialog, { open: openImportRuleDialog, fullWidth: true, children: [
100
+ /* @__PURE__ */ jsx(DialogTitle, { children: /* @__PURE__ */ jsx(
101
+ FormattedMessage,
102
+ {
103
+ id: tapChanger === FieldConstants.PHASE_TAP_CHANGER ? "ImportDephasingRule" : "ImportRegulationRule"
104
+ }
105
+ ) }),
106
+ /* @__PURE__ */ jsx(DialogContent, { children: /* @__PURE__ */ jsxs(Stack, { spacing: 2, children: [
107
+ /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(
108
+ CSVDownloader,
109
+ {
110
+ data: [csvColumns],
111
+ filename: tapChanger === FieldConstants.PHASE_TAP_CHANGER ? "tap-dephasing-rule" : "tap-regulating-rule",
112
+ config: { delimiter: getCsvDelimiter(language) },
113
+ children: /* @__PURE__ */ jsx(Button, { variant: "contained", children: /* @__PURE__ */ jsx(FormattedMessage, { id: "GenerateSkeleton" }) })
114
+ }
115
+ ) }),
116
+ /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(
117
+ CsvPicker,
118
+ {
119
+ label: tapChanger === FieldConstants.PHASE_TAP_CHANGER ? "ImportDephasingRule" : "ImportRegulationRule",
120
+ requiredColumns: NO_REQUIRED_COLUMNS,
121
+ maxLineNumber: MAX_ROWS_NUMBER,
122
+ language,
123
+ parseConfig,
124
+ selectedFile,
125
+ onFileChange: setSelectedFile,
126
+ onFileError: setFileErrorMessage,
127
+ onComplete: setParsedResults
128
+ }
129
+ ) }),
130
+ fileErrorMessage && /* @__PURE__ */ jsx(Grid, { children: /* @__PURE__ */ jsx(Alert, { severity: "error", children: fileErrorMessage }) })
131
+ ] }) }),
132
+ /* @__PURE__ */ jsxs(DialogActions, { children: [
133
+ /* @__PURE__ */ jsx(CancelButton, { onClick: handleCloseDialog }),
134
+ /* @__PURE__ */ jsx(Button, { onClick: handleSave, variant: "outlined", disabled: isInvalid, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "validate" }) })
135
+ ] })
136
+ ] });
137
+ }
138
+ export {
139
+ ImportRuleDialog
140
+ };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Copyright (c) 2026, RTE (http://www.rte-france.com)
3
+ * This Source Code Form is subject to the terms of the Mozilla Public
4
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
5
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
+ */
7
+ export * from './regulationRule.types';
8
+ export * from './regulationRule.utils';
9
+ export * from './CreateRuleDialogSubmitButton';
10
+ export * from './CreateRuleForm';
11
+ export * from './CreateRuleDialog';
12
+ export * from './ImportRuleDialog';
@@ -0,0 +1,13 @@
1
+ import { getCreateRuleEmptyFormData, getCreateRuleValidationSchema } from "./regulationRule.utils.js";
2
+ import { CreateRuleDialogSubmitButton } from "./CreateRuleDialogSubmitButton.js";
3
+ import { CreateRuleForm } from "./CreateRuleForm.js";
4
+ import { CreateRuleDialog } from "./CreateRuleDialog.js";
5
+ import { ImportRuleDialog } from "./ImportRuleDialog.js";
6
+ export {
7
+ CreateRuleDialog,
8
+ CreateRuleDialogSubmitButton,
9
+ CreateRuleForm,
10
+ ImportRuleDialog,
11
+ getCreateRuleEmptyFormData,
12
+ getCreateRuleValidationSchema
13
+ };
@@ -0,0 +1,12 @@
1
+ import { FieldConstants } from '../../../../../utils';
2
+ export interface CreateRuleFormInput {
3
+ lowTapPosition: number | null;
4
+ highTapPosition: number | null;
5
+ }
6
+ export interface CreateRuleDialogProps {
7
+ tapChanger: FieldConstants.PHASE_TAP_CHANGER | FieldConstants.RATIO_TAP_CHANGER;
8
+ openCreateRuleDialog: boolean;
9
+ setOpenCreateRuleDialog: (open: boolean) => void;
10
+ handleCreateTapRule: (lowTap: number, highTap: number) => void;
11
+ allowNegativeValues: boolean;
12
+ }
@@ -0,0 +1,9 @@
1
+ import { CreateRuleFormInput } from './regulationRule.types';
2
+ export declare const getCreateRuleValidationSchema: () => import('yup').ObjectSchema<{
3
+ lowTapPosition: number;
4
+ highTapPosition: number;
5
+ }, import('yup').AnyObject, {
6
+ lowTapPosition: undefined;
7
+ highTapPosition: undefined;
8
+ }, "">;
9
+ export declare const getCreateRuleEmptyFormData: () => CreateRuleFormInput;
@@ -0,0 +1,19 @@
1
+ import { object, number } from "yup";
2
+ import { FieldConstants } from "../../../../../utils/constants/fieldConstants.js";
3
+ import "../../../../../utils/conversionUtils.js";
4
+ import "../../../../../utils/types/equipmentType.js";
5
+ import "react/jsx-runtime";
6
+ import "@mui/icons-material";
7
+ const createRuleValidationSchema = () => object().shape({
8
+ [FieldConstants.LOW_TAP_POSITION]: number().nullable().required(),
9
+ [FieldConstants.HIGH_TAP_POSITION]: number().nullable().required()
10
+ });
11
+ const getCreateRuleValidationSchema = () => createRuleValidationSchema();
12
+ const getCreateRuleEmptyFormData = () => ({
13
+ [FieldConstants.LOW_TAP_POSITION]: null,
14
+ [FieldConstants.HIGH_TAP_POSITION]: null
15
+ });
16
+ export {
17
+ getCreateRuleEmptyFormData,
18
+ getCreateRuleValidationSchema
19
+ };
@@ -0,0 +1,14 @@
1
+ import { IntlShape } from 'react-intl';
2
+ import { TapChangerStep, TapChangerStepMapInfos } from '../common/twoWindingsTransformer.types';
3
+ export declare const getRegulationTypeLabel: (twt: any, tap: any, intl: IntlShape) => string | null;
4
+ export declare const getTapSideLabel: (twt: any, tap: any, intl: IntlShape) => string | null;
5
+ export declare const compareStepsWithPreviousValues: (tapSteps: TapChangerStep[], previousValues?: TapChangerStep[]) => boolean;
6
+ export declare const computeHighTapPosition: (steps: Record<number, TapChangerStepMapInfos>) => number | null;
7
+ interface TapChangerInfos {
8
+ regulatingTerminalConnectableType: string;
9
+ regulatingTerminalConnectableId: string;
10
+ regulatingTerminalVlId: string;
11
+ }
12
+ export declare const getTapChangerEquipmentSectionTypeValue: (tapChanger: TapChangerInfos) => string | null;
13
+ export declare function toTapChangerStepList(stepsRecord: Record<number, TapChangerStepMapInfos> | undefined): TapChangerStep[] | undefined;
14
+ export {};
@@ -0,0 +1,79 @@
1
+ import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
2
+ import "../../../../utils/conversionUtils.js";
3
+ import { REGULATION_SIDES } from "../../../../utils/types/equipmentType.js";
4
+ import "react/jsx-runtime";
5
+ import "@mui/icons-material";
6
+ import { REGULATION_TYPES } from "../../common/voltageRegulation/voltageRegulation.utils.js";
7
+ const getRegulationTypeLabel = (twt, tap, intl) => {
8
+ if (tap?.regulatingTerminalConnectableId != null) {
9
+ return tap?.regulatingTerminalConnectableId === twt?.id ? intl.formatMessage({ id: REGULATION_TYPES.LOCAL.label }) : intl.formatMessage({ id: REGULATION_TYPES.DISTANT.label });
10
+ }
11
+ return null;
12
+ };
13
+ const getTapSideLabel = (twt, tap, intl) => {
14
+ if (!tap || !twt) {
15
+ return null;
16
+ }
17
+ if (tap?.regulatingTerminalConnectableId === twt?.id) {
18
+ return tap?.regulatingTerminalVlId === twt?.voltageLevelId1 ? intl.formatMessage({ id: REGULATION_SIDES.SIDE1.label }) : intl.formatMessage({ id: REGULATION_SIDES.SIDE2.label });
19
+ }
20
+ return null;
21
+ };
22
+ const STEP_DATA_FIELDS = [
23
+ FieldConstants.STEPS_TAP,
24
+ FieldConstants.STEPS_RESISTANCE,
25
+ FieldConstants.STEPS_REACTANCE,
26
+ FieldConstants.STEPS_CONDUCTANCE,
27
+ FieldConstants.STEPS_SUSCEPTANCE,
28
+ FieldConstants.STEPS_RATIO,
29
+ FieldConstants.STEPS_ALPHA
30
+ ];
31
+ const isStepEqual = (step, previousStep) => STEP_DATA_FIELDS.every((field) => {
32
+ const value = step[field];
33
+ const previousValue = previousStep[field];
34
+ if (value == null || previousValue == null) {
35
+ return value == null && previousValue == null;
36
+ }
37
+ return Number(value) === Number(previousValue);
38
+ });
39
+ const compareStepsWithPreviousValues = (tapSteps, previousValues) => {
40
+ if (previousValues === void 0) {
41
+ return false;
42
+ }
43
+ if (tapSteps.length !== previousValues?.length) {
44
+ return false;
45
+ }
46
+ return tapSteps.every((step, index) => isStepEqual(step, previousValues[index]));
47
+ };
48
+ const computeHighTapPosition = (steps) => {
49
+ const values = steps ? Object.keys(steps).map(Number) : [];
50
+ return values.length > 0 ? Math.max(...values) : null;
51
+ };
52
+ const getTapChangerEquipmentSectionTypeValue = (tapChanger) => {
53
+ if (!tapChanger?.regulatingTerminalConnectableType) {
54
+ return null;
55
+ }
56
+ return `${tapChanger?.regulatingTerminalConnectableType} : ${tapChanger?.regulatingTerminalConnectableId}`;
57
+ };
58
+ function toTapChangerStepList(stepsRecord) {
59
+ if (stepsRecord) {
60
+ return Object.keys(stepsRecord).map((key) => {
61
+ const index = Number(key);
62
+ return {
63
+ ...stepsRecord[index],
64
+ [FieldConstants.STEPS_TAP]: index
65
+ };
66
+ }).sort((a, b) => {
67
+ return a[FieldConstants.STEPS_TAP] - b[FieldConstants.STEPS_TAP];
68
+ });
69
+ }
70
+ return void 0;
71
+ }
72
+ export {
73
+ compareStepsWithPreviousValues,
74
+ computeHighTapPosition,
75
+ getRegulationTypeLabel,
76
+ getTapChangerEquipmentSectionTypeValue,
77
+ getTapSideLabel,
78
+ toTapChangerStepList
79
+ };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Copyright (c) 2026, RTE (http://www.rte-france.com)
3
+ * This Source Code Form is subject to the terms of the Mozilla Public
4
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
5
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
+ */
7
+ export * from './utils';
@@ -0,0 +1,5 @@
1
+ import { RESULT_PAGE_OPTIONS, createMultiEnumFilterParams } from "./utils.js";
2
+ export {
3
+ RESULT_PAGE_OPTIONS,
4
+ createMultiEnumFilterParams
5
+ };
@@ -0,0 +1,5 @@
1
+ import { IFilterOptionDef } from 'ag-grid-community';
2
+ export declare const RESULT_PAGE_OPTIONS: number[];
3
+ export declare const createMultiEnumFilterParams: () => {
4
+ filterOptions: IFilterOptionDef[];
5
+ };
@@ -0,0 +1,18 @@
1
+ const RESULT_PAGE_OPTIONS = [25, 100, 500, 1e3];
2
+ const createMultiEnumFilterParams = () => ({
3
+ filterOptions: [
4
+ {
5
+ displayKey: "customInRange",
6
+ displayName: "customInRange",
7
+ predicate: (filterValues, cellValue) => {
8
+ if (!filterValues[0]) return false;
9
+ const allowedValues = filterValues[0].split(",");
10
+ return allowedValues.includes(String(cellValue));
11
+ }
12
+ }
13
+ ]
14
+ });
15
+ export {
16
+ RESULT_PAGE_OPTIONS,
17
+ createMultiEnumFilterParams
18
+ };
@@ -1,10 +1,9 @@
1
1
  import { SecurityAnalysisResultNmk } from "./security-analysis-result-nmk.js";
2
2
  import { SecurityAnalysisTable } from "./security-analysis-table.js";
3
3
  import { NmkType } from "./security-analysis.type.js";
4
- import { PAGE_OPTIONS, flattenNmKResultsConstraints, flattenNmKResultsContingencies, handlePostSortRows, mapNmKResultsCutOffPower } from "./utils.js";
4
+ import { flattenNmKResultsConstraints, flattenNmKResultsContingencies, handlePostSortRows, mapNmKResultsCutOffPower } from "./utils.js";
5
5
  export {
6
6
  NmkType,
7
- PAGE_OPTIONS,
8
7
  SecurityAnalysisResultNmk,
9
8
  SecurityAnalysisTable,
10
9
  flattenNmKResultsConstraints,
@@ -60,8 +60,9 @@ import "../../../components/composite/report/report-viewer/log-table/log-table.j
60
60
  import "react-window";
61
61
  import "../../../components/composite/report/report-treeview/treeview-item.js";
62
62
  import "../../../components/composite/report/report-viewer/context/report-viewer-context.js";
63
- import { mapNmKResultsCutOffPower, flattenNmKResultsConstraints, flattenNmKResultsContingencies, handlePostSortRows, PAGE_OPTIONS } from "./utils.js";
63
+ import { mapNmKResultsCutOffPower, flattenNmKResultsConstraints, flattenNmKResultsContingencies, handlePostSortRows } from "./utils.js";
64
64
  import { getNoRowsMessage } from "../utils/no-rows-message.js";
65
+ import { RESULT_PAGE_OPTIONS } from "../common/utils.js";
65
66
  const styles = {
66
67
  container: {
67
68
  display: "flex",
@@ -131,7 +132,7 @@ function SecurityAnalysisResultNmk({
131
132
  onGridReady
132
133
  }
133
134
  ) }),
134
- /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(CustomTablePagination, { rowsPerPageOptions: PAGE_OPTIONS, ...paginationProps }) })
135
+ /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(CustomTablePagination, { rowsPerPageOptions: RESULT_PAGE_OPTIONS, ...paginationProps }) })
135
136
  ] });
136
137
  }
137
138
  export {
@@ -1,7 +1,6 @@
1
1
  import { IntlShape } from 'react-intl';
2
2
  import { PostSortRowsParams } from 'ag-grid-community';
3
3
  import { ConstraintsFromContingencyItem, ContingenciesFromConstraintItem, CutOffPowerFromConstraintsItem, SecurityAnalysisNmkTableRow } from './security-analysis.type';
4
- export declare const PAGE_OPTIONS: number[];
5
4
  export declare const flattenNmKResultsContingencies: (intl: IntlShape, result: ConstraintsFromContingencyItem[] | null) => SecurityAnalysisNmkTableRow[] | undefined;
6
5
  export declare const flattenNmKResultsConstraints: (intl: IntlShape, result: ContingenciesFromConstraintItem[] | null) => SecurityAnalysisNmkTableRow[] | undefined;
7
6
  export declare const mapNmKResultsCutOffPower: (result: CutOffPowerFromConstraintsItem[] | null) => SecurityAnalysisNmkTableRow[] | undefined;
@@ -1,4 +1,3 @@
1
- const PAGE_OPTIONS = [25, 100, 500, 1e3];
2
1
  const MAX_INT32 = 2147483647;
3
2
  const PERMANENT_LIMIT_NAME = "permanent";
4
3
  const translateLimitNameBackToFront = (limitName, intl) => {
@@ -118,7 +117,6 @@ const handlePostSortRows = (isFromContingency) => (params) => {
118
117
  Object.assign(agGridRows, [...mappedRows.values()].flat());
119
118
  };
120
119
  export {
121
- PAGE_OPTIONS,
122
120
  flattenNmKResultsConstraints,
123
121
  flattenNmKResultsContingencies,
124
122
  handlePostSortRows,
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Copyright (c) 2026, RTE (http://www.rte-france.com)
3
+ * This Source Code Form is subject to the terms of the Mozilla Public
4
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
5
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
+ */
7
+ export * from './shortcircuit-analysis-result.type';
8
+ export * from './shortcircuit-analysis-result-content';
9
+ export * from './shortcircuit-analysis-result-table';
10
+ export * from './shortcircuit-analysis-result';
11
+ export * from './shortcircuit-analysis-all-buses-result';
@@ -0,0 +1,21 @@
1
+ import { ShortCircuitAnalysisType } from "./shortcircuit-analysis-result.type.js";
2
+ import { ALL_BUSES, FROM_COLUMN_TO_FIELD, FROM_COLUMN_TO_FIELD_ONE_BUS, ONE_BUS, convertFilterValues, mappingTabs } from "./shortcircuit-analysis-result-content.js";
3
+ import { SHORTCIRCUIT_ANALYSIS_RESULT_SORT_STORE, ShortCircuitAnalysisResultTable, numericFilterParams, resultsStyles, textFilterParams } from "./shortcircuit-analysis-result-table.js";
4
+ import { ShortCircuitAnalysisResult } from "./shortcircuit-analysis-result.js";
5
+ import { ShortCircuitAnalysisAllBusesResult } from "./shortcircuit-analysis-all-buses-result.js";
6
+ export {
7
+ ALL_BUSES,
8
+ FROM_COLUMN_TO_FIELD,
9
+ FROM_COLUMN_TO_FIELD_ONE_BUS,
10
+ ONE_BUS,
11
+ SHORTCIRCUIT_ANALYSIS_RESULT_SORT_STORE,
12
+ ShortCircuitAnalysisAllBusesResult,
13
+ ShortCircuitAnalysisResult,
14
+ ShortCircuitAnalysisResultTable,
15
+ ShortCircuitAnalysisType,
16
+ convertFilterValues,
17
+ mappingTabs,
18
+ numericFilterParams,
19
+ resultsStyles,
20
+ textFilterParams
21
+ };
@@ -0,0 +1,4 @@
1
+ import { IShortCircuitAnalysisGlobalResultProps } from './shortcircuit-analysis-result';
2
+ export interface ShortCircuitAnalysisAllBusesResultProps extends Omit<IShortCircuitAnalysisGlobalResultProps, 'analysisType' | 'result' | 'updateResult' | 'customTablePaginationProps'> {
3
+ }
4
+ export declare function ShortCircuitAnalysisAllBusesResult(props: ShortCircuitAnalysisAllBusesResultProps): import("react").JSX.Element;
@@ -0,0 +1,25 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { useState, useCallback } from "react";
3
+ import { ShortCircuitAnalysisType } from "./shortcircuit-analysis-result.type.js";
4
+ import { ShortCircuitAnalysisResult } from "./shortcircuit-analysis-result.js";
5
+ function ShortCircuitAnalysisAllBusesResult(props) {
6
+ const [result, setResult] = useState(void 0);
7
+ const updateResult = useCallback((results) => {
8
+ setResult(results ?? void 0);
9
+ }, []);
10
+ return /* @__PURE__ */ jsx(
11
+ ShortCircuitAnalysisResult,
12
+ {
13
+ analysisType: ShortCircuitAnalysisType.ALL_BUSES,
14
+ result,
15
+ updateResult,
16
+ customTablePaginationProps: {
17
+ labelRowsPerPageId: "muiTablePaginationLabelRowsPerPageAllBusesSCA"
18
+ },
19
+ ...props
20
+ }
21
+ );
22
+ }
23
+ export {
24
+ ShortCircuitAnalysisAllBusesResult
25
+ };
@@ -0,0 +1,13 @@
1
+ import { ShortCircuitAnalysisType } from './shortcircuit-analysis-result.type';
2
+ export declare const ALL_BUSES = "allBuses";
3
+ export declare const ONE_BUS = "oneBus";
4
+ export declare const FROM_COLUMN_TO_FIELD: Record<string, string>;
5
+ export declare const FROM_COLUMN_TO_FIELD_ONE_BUS: Record<string, string>;
6
+ export declare const mappingTabs: (analysisType: ShortCircuitAnalysisType) => string;
7
+ export type ShortcircuitFilterConfig = {
8
+ column: string;
9
+ value: unknown;
10
+ tolerance?: number;
11
+ [key: string]: unknown;
12
+ };
13
+ export declare const convertFilterValues: (filterSelector: ShortcircuitFilterConfig[]) => ShortcircuitFilterConfig[];