@gridsuite/commons-ui 0.208.0 → 0.210.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 (74) hide show
  1. package/dist/components/filter/utils/filterFormUtils.js +2 -1
  2. package/dist/components/index.js +33 -3
  3. package/dist/components/inputs/reactHookForm/booleans/RadioInput.js +2 -2
  4. package/dist/components/network-modification-table/renderers/name-cell.d.ts +2 -1
  5. package/dist/components/network-modification-table/renderers/name-cell.js +136 -19
  6. package/dist/components/network-modifications/battery/creation/BatteryCreationForm.d.ts +4 -0
  7. package/dist/components/network-modifications/battery/creation/BatteryCreationForm.js +105 -0
  8. package/dist/components/network-modifications/battery/creation/batteryCreation.types.d.ts +26 -0
  9. package/dist/components/network-modifications/battery/creation/batteryCreation.types.js +1 -0
  10. package/dist/components/network-modifications/battery/creation/batteryCreation.utils.d.ts +79 -0
  11. package/dist/components/network-modifications/battery/creation/batteryCreation.utils.js +145 -0
  12. package/dist/components/network-modifications/{voltageLevel/creation/tabs/structureTab/switchesBetweenSections/creation/CreateSwitchesForm.d.ts → battery/creation/index.d.ts} +3 -5
  13. package/dist/components/network-modifications/battery/creation/index.js +9 -0
  14. package/dist/components/network-modifications/{voltageLevel/creation/tabs/structureTab/switchesBetweenSections/creation → battery}/index.d.ts +1 -1
  15. package/dist/components/network-modifications/battery/index.js +9 -0
  16. package/dist/components/network-modifications/common/activePowerControl/activePowerControlForm.utils.js +2 -2
  17. package/dist/components/network-modifications/common/index.js +5 -2
  18. package/dist/components/network-modifications/common/reactiveLimits/index.js +5 -2
  19. package/dist/components/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/index.js +2 -1
  20. package/dist/components/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/reactiveCapability.utils.d.ts +10 -1
  21. package/dist/components/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/reactiveCapability.utils.js +30 -27
  22. package/dist/components/network-modifications/common/reactiveLimits/reactiveLimits.type.d.ts +3 -3
  23. package/dist/components/network-modifications/common/reactiveLimits/reactiveLimits.utils.d.ts +33 -0
  24. package/dist/components/network-modifications/common/reactiveLimits/reactiveLimits.utils.js +69 -35
  25. package/dist/components/network-modifications/common/setpoints/setPoints.utils.js +1 -1
  26. package/dist/components/network-modifications/common/shortCircuit/shortCircuitForm.utils.js +3 -3
  27. package/dist/components/network-modifications/index.d.ts +2 -0
  28. package/dist/components/network-modifications/index.js +33 -3
  29. package/dist/components/network-modifications/shunt-compensator/common/CharacteristicsForm.d.ts +6 -0
  30. package/dist/components/network-modifications/shunt-compensator/common/CharacteristicsForm.js +199 -0
  31. package/dist/components/network-modifications/shunt-compensator/common/characteristicsForm.utils.d.ts +64 -0
  32. package/dist/components/network-modifications/shunt-compensator/common/characteristicsForm.utils.js +90 -0
  33. package/dist/components/network-modifications/shunt-compensator/common/index.d.ts +10 -0
  34. package/dist/components/network-modifications/shunt-compensator/common/index.js +13 -0
  35. package/dist/components/network-modifications/shunt-compensator/common/shuntCompensator.types.d.ts +20 -0
  36. package/dist/components/network-modifications/shunt-compensator/common/shuntCompensator.types.js +1 -0
  37. package/dist/components/network-modifications/shunt-compensator/common/shuntCompensator.utils.d.ts +27 -0
  38. package/dist/components/network-modifications/shunt-compensator/common/shuntCompensator.utils.js +16 -0
  39. package/dist/components/network-modifications/shunt-compensator/creation/ShuntCompensatorCreationForm.d.ts +3 -0
  40. package/dist/components/network-modifications/shunt-compensator/creation/ShuntCompensatorCreationForm.js +82 -0
  41. package/dist/components/network-modifications/shunt-compensator/creation/index.d.ts +9 -0
  42. package/dist/components/network-modifications/shunt-compensator/creation/index.js +9 -0
  43. package/dist/components/network-modifications/shunt-compensator/creation/shuntCompensatorCreation.types.d.ts +20 -0
  44. package/dist/components/network-modifications/shunt-compensator/creation/shuntCompensatorCreation.types.js +1 -0
  45. package/dist/components/network-modifications/shunt-compensator/creation/shuntCompensatorCreation.utils.d.ts +110 -0
  46. package/dist/components/network-modifications/shunt-compensator/creation/shuntCompensatorCreation.utils.js +103 -0
  47. package/dist/components/network-modifications/shunt-compensator/index.d.ts +8 -0
  48. package/dist/components/network-modifications/shunt-compensator/index.js +20 -0
  49. package/dist/components/network-modifications/voltageLevel/creation/VoltageLevelCreationForm.js +1 -1
  50. package/dist/components/network-modifications/voltageLevel/creation/index.d.ts +1 -0
  51. package/dist/components/network-modifications/voltageLevel/creation/index.js +3 -1
  52. package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/StructureTab.js +6 -2
  53. package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/SwitchesBetweenSections.js +22 -43
  54. package/dist/components/network-modifications/voltageLevel/creation/voltageLevel.constants.d.ts +1 -0
  55. package/dist/components/network-modifications/voltageLevel/creation/voltageLevel.constants.js +2 -0
  56. package/dist/components/network-modifications/voltageLevel/creation/voltageLevelCreation.utils.js +2 -1
  57. package/dist/components/network-modifications/voltageLevel/index.js +3 -1
  58. package/dist/index.js +33 -3
  59. package/dist/translations/en/networkModificationsEn.d.ts +24 -0
  60. package/dist/translations/en/networkModificationsEn.js +24 -0
  61. package/dist/translations/fr/networkModificationsFr.d.ts +24 -0
  62. package/dist/translations/fr/networkModificationsFr.js +24 -0
  63. package/dist/utils/constants/fieldConstants.d.ts +7 -0
  64. package/dist/utils/constants/fieldConstants.js +7 -0
  65. package/dist/utils/types/network-modification-metadata.d.ts +1 -0
  66. package/package.json +1 -1
  67. package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/creation/CreateSwitchesDialog.d.ts +0 -11
  68. package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/creation/CreateSwitchesDialog.js +0 -84
  69. package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/creation/CreateSwitchesDialogSubmitButton.d.ts +0 -6
  70. package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/creation/CreateSwitchesDialogSubmitButton.js +0 -11
  71. package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/creation/CreateSwitchesForm.js +0 -61
  72. package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/creation/createSwitchesDialog.utils.d.ts +0 -14
  73. package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/creation/createSwitchesDialog.utils.js +0 -27
  74. package/dist/components/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/creation/index.js +0 -4
@@ -1,61 +0,0 @@
1
- import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import { DialogTitle, DialogContent, Grid } from "@mui/material";
3
- import { useFieldArray } 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
- import "../../../../../../../../utils/yupConfig.js";
10
- import { SWITCH_TYPE } from "../../../../voltageLevelCreation.utils.js";
11
- import "../../../../../../../overflowableText/OverflowableText.js";
12
- import "react";
13
- import "localized-countries";
14
- import "localized-countries/data/fr";
15
- import "localized-countries/data/en";
16
- import "notistack";
17
- import "../../../../../../../inputs/reactHookForm/provider/CustomFormProvider.js";
18
- import "yup";
19
- import "../../../../../../../treeViewFinder/TreeViewFinder.js";
20
- import "../../../../../../../inputs/reactHookForm/agGridTable/BottomRightButtons.js";
21
- import "../../../../../../../customAGGrid/customAggrid.js";
22
- import "ag-grid-community";
23
- import "react-papaparse";
24
- import "react-csv-downloader";
25
- import "../../../../../../../inputs/reactHookForm/numbers/RangeInput.js";
26
- import { EnumInput } from "../../../../../../../inputs/reactHookForm/selectInputs/EnumInput.js";
27
- import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
28
- import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
29
- import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
30
- import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
31
- import "@material-symbols/svg-400/outlined/add_notes.svg?react";
32
- import "../../../../../../../dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
33
- import "../../../../../../../inputs/reactHookForm/expandableInput/ExpandableInput.js";
34
- import "@react-querybuilder/material";
35
- import "../../../../../../../filter/expert/expertFilterConstants.js";
36
- import "../../../../../../../inputs/reactQueryBuilder/CustomReactQueryBuilder.js";
37
- import "uuid";
38
- import "../../../../../../../inputs/reactQueryBuilder/PropertyValueEditor.js";
39
- import "react-querybuilder";
40
- function CreateSwitchesForm({ id }) {
41
- const { fields: rows } = useFieldArray({ name: `${id}` });
42
- return /* @__PURE__ */ jsxs(Fragment, { children: [
43
- /* @__PURE__ */ jsx(DialogTitle, { children: /* @__PURE__ */ jsx(FormattedMessage, { id: "SwitchesBetweenSections" }) }),
44
- /* @__PURE__ */ jsx(DialogContent, { children: /* @__PURE__ */ jsx(Grid, { container: true, spacing: 2, direction: "column", pt: 1, children: rows.map((value, index) => /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
45
- EnumInput,
46
- {
47
- options: Object.values(SWITCH_TYPE),
48
- name: `${id}.${index}.${FieldConstants.SWITCH_KIND}`,
49
- label: "SwitchBetweenSectionsLabel",
50
- labelValues: {
51
- index1: String(index + 1),
52
- index2: String(index + 2)
53
- },
54
- size: "small"
55
- }
56
- ) }, value.id)) }) })
57
- ] });
58
- }
59
- export {
60
- CreateSwitchesForm as default
61
- };
@@ -1,14 +0,0 @@
1
- import { FieldConstants } from '../../../../../../../../utils';
2
- export declare const getSwitchTypeSchema: () => import('yup').ObjectSchema<{
3
- switchKind: string;
4
- }, import('yup').AnyObject, {
5
- switchKind: undefined;
6
- }, "">;
7
- export declare const getCreateSwitchesValidationSchema: (id?: FieldConstants) => {
8
- [x: string]: import('yup').ArraySchema<{
9
- switchKind: string;
10
- }[] | null | undefined, import('yup').AnyObject, "", "">;
11
- };
12
- export declare const getCreateSwitchesEmptyFormData: (sectionCount: number, id?: FieldConstants) => {
13
- [x: string]: any[];
14
- };
@@ -1,27 +0,0 @@
1
- import { object, string, array } from "yup";
2
- import { FieldConstants } from "../../../../../../../../utils/constants/fieldConstants.js";
3
- import { YUP_REQUIRED } from "../../../../../../../../utils/constants/translationKeys.js";
4
- import "../../../../../../../../utils/conversionUtils.js";
5
- import "../../../../../../../../utils/types/equipmentType.js";
6
- import "react/jsx-runtime";
7
- import "@mui/icons-material";
8
- import "../../../../../../../../utils/yupConfig.js";
9
- const getSwitchTypeSchema = () => object().shape({
10
- [FieldConstants.SWITCH_KIND]: string().nullable().required(YUP_REQUIRED)
11
- });
12
- const getCreateSwitchesValidationSchema = (id = FieldConstants.SWITCH_KINDS) => {
13
- return {
14
- [id]: array().nullable().of(getSwitchTypeSchema())
15
- };
16
- };
17
- const createSwitchesEmptyFormData = () => ({
18
- [FieldConstants.SWITCH_KIND]: ""
19
- });
20
- const getCreateSwitchesEmptyFormData = (sectionCount, id = FieldConstants.SWITCH_KINDS) => ({
21
- [id]: new Array(sectionCount - 1).fill(createSwitchesEmptyFormData())
22
- });
23
- export {
24
- getCreateSwitchesEmptyFormData,
25
- getCreateSwitchesValidationSchema,
26
- getSwitchTypeSchema
27
- };
@@ -1,4 +0,0 @@
1
- import { CreateSwitchesDialog } from "./CreateSwitchesDialog.js";
2
- export {
3
- CreateSwitchesDialog
4
- };