@gridsuite/commons-ui 0.279.0 → 0.280.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 (32) hide show
  1. package/dist/components/composite/customAGGrid/separatorCellRenderer.d.ts +7 -2
  2. package/dist/components/composite/customAGGrid/separatorCellRenderer.js +2 -2
  3. package/dist/features/index.js +13 -0
  4. package/dist/features/network-modifications/index.js +13 -0
  5. package/dist/features/network-modifications/voltageLevel/common/HeaderWithTooltip.d.ts +8 -0
  6. package/dist/features/network-modifications/voltageLevel/common/HeaderWithTooltip.js +119 -0
  7. package/dist/features/network-modifications/voltageLevel/common/index.d.ts +1 -0
  8. package/dist/features/network-modifications/voltageLevel/common/index.js +4 -0
  9. package/dist/features/network-modifications/voltageLevel/index.d.ts +2 -0
  10. package/dist/features/network-modifications/voltageLevel/index.js +13 -0
  11. package/dist/features/network-modifications/voltageLevel/moveFeederBays/MoveVoltageLevelFeederBaysForm.d.ts +8 -0
  12. package/dist/features/network-modifications/voltageLevel/moveFeederBays/MoveVoltageLevelFeederBaysForm.js +387 -0
  13. package/dist/features/network-modifications/voltageLevel/moveFeederBays/feederBay/FeederBayDirectionCellRender.d.ts +6 -0
  14. package/dist/features/network-modifications/voltageLevel/moveFeederBays/feederBay/FeederBayDirectionCellRender.js +64 -0
  15. package/dist/features/network-modifications/voltageLevel/moveFeederBays/feederBay/FeederBayPositionCellRender.d.ts +6 -0
  16. package/dist/features/network-modifications/voltageLevel/moveFeederBays/feederBay/FeederBayPositionCellRender.js +102 -0
  17. package/dist/features/network-modifications/voltageLevel/moveFeederBays/feederBay/index.d.ts +2 -0
  18. package/dist/features/network-modifications/voltageLevel/moveFeederBays/feederBay/index.js +6 -0
  19. package/dist/features/network-modifications/voltageLevel/moveFeederBays/index.d.ts +4 -0
  20. package/dist/features/network-modifications/voltageLevel/moveFeederBays/index.js +13 -0
  21. package/dist/features/network-modifications/voltageLevel/moveFeederBays/moveVoltageLevelFeederBays.type.d.ts +36 -0
  22. package/dist/features/network-modifications/voltageLevel/moveFeederBays/moveVoltageLevelFeederBays.type.js +1 -0
  23. package/dist/features/network-modifications/voltageLevel/moveFeederBays/moveVoltageLevelFeederBays.utils.d.ts +37 -0
  24. package/dist/features/network-modifications/voltageLevel/moveFeederBays/moveVoltageLevelFeederBays.utils.js +86 -0
  25. package/dist/index.js +13 -0
  26. package/dist/translations/en/networkModificationsEn.d.ts +12 -0
  27. package/dist/translations/en/networkModificationsEn.js +13 -1
  28. package/dist/translations/fr/networkModificationsFr.d.ts +12 -0
  29. package/dist/translations/fr/networkModificationsFr.js +13 -1
  30. package/dist/utils/constants/fieldConstants.d.ts +7 -1
  31. package/dist/utils/constants/fieldConstants.js +6 -0
  32. package/package.json +1 -1
@@ -1,2 +1,7 @@
1
- import { TypographyProps } from '@mui/material';
2
- export declare function SeparatorCellRenderer({ children, sx, ...otherProps }: Readonly<TypographyProps>): import("react").JSX.Element;
1
+ import { SxProps } from '@mui/material';
2
+ type SeparatorCellRendererProps = {
3
+ value: string;
4
+ sx?: SxProps;
5
+ };
6
+ export declare function SeparatorCellRenderer({ value, sx }: Readonly<SeparatorCellRendererProps>): import("react").JSX.Element;
7
+ export {};
@@ -12,8 +12,8 @@ const styles = {
12
12
  marginTop: theme.spacing(1)
13
13
  })
14
14
  };
15
- function SeparatorCellRenderer({ children, sx, ...otherProps }) {
16
- return /* @__PURE__ */ jsx(Typography, { variant: "subtitle1", color: "primary", sx: mergeSx(styles.separator, sx), ...otherProps, children });
15
+ function SeparatorCellRenderer({ value, sx }) {
16
+ return /* @__PURE__ */ jsx(Typography, { variant: "subtitle1", color: "primary", sx: mergeSx(styles.separator, sx), children: value });
17
17
  }
18
18
  export {
19
19
  SeparatorCellRenderer
@@ -171,6 +171,11 @@ import { createVoltageLevelTopologyDtoToForm, createVoltageLevelTopologyEmptyFor
171
171
  import { CreateVoltageLevelTopologyForm } from "./network-modifications/voltageLevel/topology/CreateVoltageLevelTopologyForm.js";
172
172
  import { VoltageLevelSectionCreationForm } from "./network-modifications/voltageLevel/section/VoltageLevelSectionCreationForm.js";
173
173
  import { POSITION_NEW_SECTION_SIDE, voltageLevelSectionCreationDtoToForm, voltageLevelSectionCreationEmptyFormData, voltageLevelSectionCreationFormSchema, voltageLevelSectionCreationFormToDto } from "./network-modifications/voltageLevel/section/voltageLevelSectionCreation.utils.js";
174
+ import { FeederBayPositionCellRenderer } from "./network-modifications/voltageLevel/moveFeederBays/feederBay/FeederBayPositionCellRender.js";
175
+ import { FeederBayDirectionCellRenderer } from "./network-modifications/voltageLevel/moveFeederBays/feederBay/FeederBayDirectionCellRender.js";
176
+ import { emptyMoveVoltageLevelFeederBaysFormData, moveVoltageLevelFeederBaysDtoToForm, moveVoltageLevelFeederBaysFormSchema, moveVoltageLevelFeederBaysFormToDto } from "./network-modifications/voltageLevel/moveFeederBays/moveVoltageLevelFeederBays.utils.js";
177
+ import { MoveVoltageLevelFeederBaysForm } from "./network-modifications/voltageLevel/moveFeederBays/MoveVoltageLevelFeederBaysForm.js";
178
+ import { HeaderWithTooltip } from "./network-modifications/voltageLevel/common/HeaderWithTooltip.js";
174
179
  import { LOAD_TAB_FIELDS, LoadDialogTab } from "./network-modifications/load/common/load.utils.js";
175
180
  import { LoadDialogTabs } from "./network-modifications/load/common/LoadDialogTabs.js";
176
181
  import { LoadDialogTabsContent } from "./network-modifications/load/common/LoadDialogTabsContent.js";
@@ -408,6 +413,8 @@ export {
408
413
  FORMULAS,
409
414
  FROM_COLUMN_TO_FIELD,
410
415
  FROM_COLUMN_TO_FIELD_ONE_BUS,
416
+ FeederBayDirectionCellRenderer,
417
+ FeederBayPositionCellRenderer,
411
418
  GENERAL,
412
419
  GENERAL_APPLY_MODIFICATIONS,
413
420
  GENERATORS_SELECTION_TYPE,
@@ -427,6 +434,7 @@ export {
427
434
  HIGH_VOLTAGE_PROPORTIONAL_THRESHOLD,
428
435
  HVDC_AC_EMULATION,
429
436
  HVDC_EQUIPMENT_TYPES,
437
+ HeaderWithTooltip,
430
438
  HvdcLccDeletionSpecificForm,
431
439
  INJECTIONS_EQUIPMENT_TYPES,
432
440
  INJECTION_DISTRIBUTION_TYPES,
@@ -501,6 +509,7 @@ export {
501
509
  ModificationByAssignmentForm,
502
510
  ModificationByFormulaForm,
503
511
  ModificationRow,
512
+ MoveVoltageLevelFeederBaysForm,
504
513
  NAD_POSITIONS_GENERATION_MODE,
505
514
  NAD_POSITIONS_GENERATION_MODE_LABEL,
506
515
  NODE_CLUSTER,
@@ -759,6 +768,7 @@ export {
759
768
  emptyLineSegment,
760
769
  emptyModificationByAssignmentFormData,
761
770
  emptyModificationFormData,
771
+ emptyMoveVoltageLevelFeederBaysFormData,
762
772
  emptyProcessConfigModificationsFormData,
763
773
  emptyProperties,
764
774
  equipmentDeletionDtoToForm,
@@ -967,6 +977,9 @@ export {
967
977
  modificationByFormulaFormToDto,
968
978
  modificationPropertiesSchema,
969
979
  moveSubModificationInTree,
980
+ moveVoltageLevelFeederBaysDtoToForm,
981
+ moveVoltageLevelFeederBaysFormSchema,
982
+ moveVoltageLevelFeederBaysFormToDto,
970
983
  networkModificationTableStyles,
971
984
  newEquipmentDeletionDto,
972
985
  numericFilterParams,
@@ -96,6 +96,11 @@ import { createVoltageLevelTopologyDtoToForm, createVoltageLevelTopologyEmptyFor
96
96
  import { CreateVoltageLevelTopologyForm } from "./voltageLevel/topology/CreateVoltageLevelTopologyForm.js";
97
97
  import { VoltageLevelSectionCreationForm } from "./voltageLevel/section/VoltageLevelSectionCreationForm.js";
98
98
  import { POSITION_NEW_SECTION_SIDE, voltageLevelSectionCreationDtoToForm, voltageLevelSectionCreationEmptyFormData, voltageLevelSectionCreationFormSchema, voltageLevelSectionCreationFormToDto } from "./voltageLevel/section/voltageLevelSectionCreation.utils.js";
99
+ import { FeederBayPositionCellRenderer } from "./voltageLevel/moveFeederBays/feederBay/FeederBayPositionCellRender.js";
100
+ import { FeederBayDirectionCellRenderer } from "./voltageLevel/moveFeederBays/feederBay/FeederBayDirectionCellRender.js";
101
+ import { emptyMoveVoltageLevelFeederBaysFormData, moveVoltageLevelFeederBaysDtoToForm, moveVoltageLevelFeederBaysFormSchema, moveVoltageLevelFeederBaysFormToDto } from "./voltageLevel/moveFeederBays/moveVoltageLevelFeederBays.utils.js";
102
+ import { MoveVoltageLevelFeederBaysForm } from "./voltageLevel/moveFeederBays/MoveVoltageLevelFeederBaysForm.js";
103
+ import { HeaderWithTooltip } from "./voltageLevel/common/HeaderWithTooltip.js";
99
104
  import { LOAD_TAB_FIELDS, LoadDialogTab } from "./load/common/load.utils.js";
100
105
  import { LoadDialogTabs } from "./load/common/LoadDialogTabs.js";
101
106
  import { LoadDialogTabsContent } from "./load/common/LoadDialogTabsContent.js";
@@ -208,6 +213,8 @@ export {
208
213
  EQUIPMENT_TYPE_ORDER,
209
214
  EquipmentDeletionForm,
210
215
  FORMULAS,
216
+ FeederBayDirectionCellRenderer,
217
+ FeederBayPositionCellRenderer,
211
218
  GENERATOR_TAB_FIELDS,
212
219
  GeneratorCreationForm,
213
220
  GeneratorDialogHeader,
@@ -215,6 +222,7 @@ export {
215
222
  GeneratorDialogTabs,
216
223
  GeneratorDialogTabsContent,
217
224
  GeneratorModificationForm,
225
+ HeaderWithTooltip,
218
226
  HvdcLccDeletionSpecificForm,
219
227
  INSERT,
220
228
  ImportRuleDialog,
@@ -242,6 +250,7 @@ export {
242
250
  MAX_SECTIONS_COUNT,
243
251
  ModificationByAssignmentForm,
244
252
  ModificationByFormulaForm,
253
+ MoveVoltageLevelFeederBaysForm,
245
254
  OPERATIONAL_LIMITS_GROUPS_MODIFICATION_TYPE,
246
255
  OPERATOR,
247
256
  OperationalLimitsGroupTabLabel,
@@ -344,6 +353,7 @@ export {
344
353
  emptyLineSegment,
345
354
  emptyModificationByAssignmentFormData,
346
355
  emptyModificationFormData,
356
+ emptyMoveVoltageLevelFeederBaysFormData,
347
357
  emptyProperties,
348
358
  equipmentDeletionDtoToForm,
349
359
  equipmentDeletionEmptyFormData,
@@ -510,6 +520,9 @@ export {
510
520
  modificationByFormulaFormSchema,
511
521
  modificationByFormulaFormToDto,
512
522
  modificationPropertiesSchema,
523
+ moveVoltageLevelFeederBaysDtoToForm,
524
+ moveVoltageLevelFeederBaysFormSchema,
525
+ moveVoltageLevelFeederBaysFormToDto,
513
526
  newEquipmentDeletionDto,
514
527
  sanitizeLimitNames,
515
528
  sanitizeLimitsGroups,
@@ -0,0 +1,8 @@
1
+ type HeaderWithTooltipProps = {
2
+ displayName: string;
3
+ tooltipTitle: string;
4
+ isNodeBuilt: boolean;
5
+ disabledTooltip: boolean;
6
+ };
7
+ export declare function HeaderWithTooltip({ displayName, tooltipTitle, isNodeBuilt, disabledTooltip, }: Readonly<HeaderWithTooltipProps>): import("react").JSX.Element;
8
+ export {};
@@ -0,0 +1,119 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { Box, FormHelperText } from "@mui/material";
3
+ import { InfoOutlined, WarningAmberRounded } from "@mui/icons-material";
4
+ import "react-intl";
5
+ import "../../../../components/ui/overflowableText/OverflowableText.js";
6
+ import "../../../../utils/conversionUtils.js";
7
+ import "../../../../utils/types/equipmentType.js";
8
+ import "react";
9
+ import "react-hook-form";
10
+ import "localized-countries";
11
+ import "localized-countries/data/fr";
12
+ import "localized-countries/data/en";
13
+ import "notistack";
14
+ import "../../../../components/ui/reactHookForm/provider/CustomFormProvider.js";
15
+ import "yup";
16
+ import { CustomTooltip } from "../../../../components/ui/tooltip/CustomTooltip.js";
17
+ import "../../../../components/ui/treeViewFinder/TreeViewFinder.js";
18
+ import "../../../../components/ui/reactHookForm/numbers/RangeInput.js";
19
+ import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
20
+ import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
21
+ import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
22
+ import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
23
+ import "@material-symbols/svg-400/outlined/add_notes-fill.svg?react";
24
+ import "../../../../components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
25
+ import "../../../../components/ui/reactHookForm/expandableInput/ExpandableInput.js";
26
+ import "../../../../components/ui/reactHookForm/directory-item-input/directory-item-utils.js";
27
+ import "@hello-pangea/dnd";
28
+ import "../../../../components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
29
+ import "../../../../components/ui/snackbarProvider/SnackbarProvider.js";
30
+ import "mui-nested-menu";
31
+ import "react-resizable-panels";
32
+ import "react-papaparse";
33
+ import "react-dom";
34
+ import "autosuggest-highlight/match";
35
+ import "autosuggest-highlight/parse";
36
+ import "clsx";
37
+ import "../../../../components/composite/filter/FilterCreationDialog.js";
38
+ import "../../../../components/composite/filter/HeaderFilterForm.js";
39
+ import "../../../../components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js";
40
+ import "../../../../components/composite/filter/expert/ExpertFilterForm.js";
41
+ import "../../../../components/composite/filter/expert/ExpertFilterEditionDialog.js";
42
+ import "../../../../components/composite/filter/expert/expertFilterConstants.js";
43
+ import "react-querybuilder";
44
+ import "uuid";
45
+ import "../../../../components/composite/filter/explicitNaming/ExplicitNamingFilterEditionDialog.js";
46
+ import "../../../../components/composite/filter/utils/filterFormUtils.js";
47
+ import "@react-querybuilder/material";
48
+ import "../../../../components/composite/reactQueryBuilder/CustomReactQueryBuilder.js";
49
+ import "../../../../components/composite/reactQueryBuilder/PropertyValueEditor.js";
50
+ import "../../../../components/composite/agGridTable/BottomTableButtons.js";
51
+ import "../../../../components/composite/agGridTable/CustomAgGridTable.js";
52
+ import "ag-grid-community";
53
+ import "../../../../components/composite/customAGGrid/customAggrid.js";
54
+ import "../../../../components/composite/customAGGrid/context/custom-aggrid-context.js";
55
+ import "mathjs";
56
+ import "../../../../components/composite/report/report-viewer/log-table/log-table.js";
57
+ import "react-window";
58
+ import "../../../../components/composite/report/report-treeview/treeview-item.js";
59
+ import "../../../../components/composite/report/report-viewer/context/report-viewer-context.js";
60
+ function HeaderWithTooltip({
61
+ displayName,
62
+ tooltipTitle,
63
+ isNodeBuilt,
64
+ disabledTooltip
65
+ }) {
66
+ return /* @__PURE__ */ jsxs(
67
+ Box,
68
+ {
69
+ sx: {
70
+ display: "flex",
71
+ alignItems: "center",
72
+ justifyContent: "center",
73
+ width: "100%",
74
+ height: "100%",
75
+ padding: "0 4px"
76
+ },
77
+ children: [
78
+ /* @__PURE__ */ jsx("span", { style: { marginRight: "8px" }, children: displayName }),
79
+ !disabledTooltip && /* @__PURE__ */ jsx(
80
+ FormHelperText,
81
+ {
82
+ error: false,
83
+ sx: {
84
+ m: 0,
85
+ p: 0,
86
+ minWidth: "auto",
87
+ lineHeight: 1,
88
+ display: "flex"
89
+ },
90
+ children: /* @__PURE__ */ jsx(
91
+ CustomTooltip,
92
+ {
93
+ title: tooltipTitle,
94
+ placement: "right",
95
+ arrow: true,
96
+ slotProps: {
97
+ popper: {
98
+ modifiers: [
99
+ {
100
+ name: "offset",
101
+ options: {
102
+ offset: [0, -10]
103
+ }
104
+ }
105
+ ]
106
+ }
107
+ },
108
+ children: /* @__PURE__ */ jsx("span", { style: { display: "flex", alignItems: "center" }, children: isNodeBuilt ? /* @__PURE__ */ jsx(InfoOutlined, { color: "info", fontSize: "small" }) : /* @__PURE__ */ jsx(WarningAmberRounded, { color: "warning", fontSize: "small" }) })
109
+ }
110
+ )
111
+ }
112
+ )
113
+ ]
114
+ }
115
+ );
116
+ }
117
+ export {
118
+ HeaderWithTooltip
119
+ };
@@ -0,0 +1 @@
1
+ export * from './HeaderWithTooltip';
@@ -0,0 +1,4 @@
1
+ import { HeaderWithTooltip } from "./HeaderWithTooltip.js";
2
+ export {
3
+ HeaderWithTooltip
4
+ };
@@ -10,3 +10,5 @@ export * from './voltage-level.type';
10
10
  export * from './modification';
11
11
  export * from './topology';
12
12
  export * from './section';
13
+ export * from './moveFeederBays';
14
+ export * from './common';
@@ -74,10 +74,19 @@ import { createVoltageLevelTopologyDtoToForm, createVoltageLevelTopologyEmptyFor
74
74
  import { CreateVoltageLevelTopologyForm } from "./topology/CreateVoltageLevelTopologyForm.js";
75
75
  import { VoltageLevelSectionCreationForm } from "./section/VoltageLevelSectionCreationForm.js";
76
76
  import { POSITION_NEW_SECTION_SIDE, voltageLevelSectionCreationDtoToForm, voltageLevelSectionCreationEmptyFormData, voltageLevelSectionCreationFormSchema, voltageLevelSectionCreationFormToDto } from "./section/voltageLevelSectionCreation.utils.js";
77
+ import { FeederBayPositionCellRenderer } from "./moveFeederBays/feederBay/FeederBayPositionCellRender.js";
78
+ import { FeederBayDirectionCellRenderer } from "./moveFeederBays/feederBay/FeederBayDirectionCellRender.js";
79
+ import { emptyMoveVoltageLevelFeederBaysFormData, moveVoltageLevelFeederBaysDtoToForm, moveVoltageLevelFeederBaysFormSchema, moveVoltageLevelFeederBaysFormToDto } from "./moveFeederBays/moveVoltageLevelFeederBays.utils.js";
80
+ import { MoveVoltageLevelFeederBaysForm } from "./moveFeederBays/MoveVoltageLevelFeederBaysForm.js";
81
+ import { HeaderWithTooltip } from "./common/HeaderWithTooltip.js";
77
82
  export {
78
83
  CouplingDeviceCreationForm,
79
84
  CreateVoltageLevelTopologyForm,
85
+ FeederBayDirectionCellRenderer,
86
+ FeederBayPositionCellRenderer,
87
+ HeaderWithTooltip,
80
88
  MAX_SECTIONS_COUNT,
89
+ MoveVoltageLevelFeederBaysForm,
81
90
  POSITION_NEW_SECTION_SIDE,
82
91
  SWITCH_TYPE,
83
92
  SwitchKind,
@@ -94,8 +103,12 @@ export {
94
103
  createVoltageLevelTopologyFormSchema,
95
104
  createVoltageLevelTopologyFormToDto,
96
105
  emptyCouplingDeviceCreationFormData,
106
+ emptyMoveVoltageLevelFeederBaysFormData,
97
107
  getCreateSwitchesEmptyFormData,
98
108
  getCreateSwitchesValidationSchema,
109
+ moveVoltageLevelFeederBaysDtoToForm,
110
+ moveVoltageLevelFeederBaysFormSchema,
111
+ moveVoltageLevelFeederBaysFormToDto,
99
112
  translateSwitchKinds,
100
113
  voltageLevelCreationDtoToForm,
101
114
  voltageLevelCreationEmptyFormData,
@@ -0,0 +1,8 @@
1
+ import { PositionDiagramPaneType } from '../../common';
2
+ import { FeederBays } from './moveVoltageLevelFeederBays.type';
3
+ export interface MoveVoltageLevelFeederBaysFormProps {
4
+ feederBaysPreviousValues: FeederBays;
5
+ isReady?: boolean;
6
+ PositionDiagramPane?: PositionDiagramPaneType;
7
+ }
8
+ export declare function MoveVoltageLevelFeederBaysForm({ feederBaysPreviousValues, PositionDiagramPane, isReady, }: Readonly<MoveVoltageLevelFeederBaysFormProps>): import("react").JSX.Element;