@gridsuite/commons-ui 0.280.0 → 0.281.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 (110) hide show
  1. package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.d.ts +6 -1
  2. package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js +29 -5
  3. package/dist/components/ui/reactHookForm/booleans/RadioInput.d.ts +1 -0
  4. package/dist/components/ui/reactHookForm/booleans/RadioInput.js +2 -1
  5. package/dist/features/index.js +80 -3
  6. package/dist/features/network-modifications/index.d.ts +1 -0
  7. package/dist/features/network-modifications/index.js +78 -3
  8. package/dist/features/network-modifications/tabular/TabularForm.d.ts +22 -0
  9. package/dist/features/network-modifications/tabular/TabularForm.js +536 -0
  10. package/dist/features/network-modifications/tabular/index.d.ts +7 -0
  11. package/dist/features/network-modifications/tabular/index.js +65 -0
  12. package/dist/features/network-modifications/tabular/properties/DefineTabularPropertiesDialog.d.ts +12 -0
  13. package/dist/features/network-modifications/tabular/properties/DefineTabularPropertiesDialog.js +123 -0
  14. package/dist/features/network-modifications/tabular/properties/TabularPropertiesForm.d.ts +1 -0
  15. package/dist/features/network-modifications/tabular/properties/TabularPropertiesForm.js +87 -0
  16. package/dist/features/network-modifications/tabular/properties/TabularPropertyForm.d.ts +5 -0
  17. package/dist/features/network-modifications/tabular/properties/TabularPropertyForm.js +91 -0
  18. package/dist/features/network-modifications/tabular/properties/index.d.ts +4 -0
  19. package/dist/features/network-modifications/tabular/properties/index.js +13 -0
  20. package/dist/features/network-modifications/tabular/properties/tabularProperty.utils.d.ts +26 -0
  21. package/dist/features/network-modifications/tabular/properties/tabularProperty.utils.js +50 -0
  22. package/dist/features/network-modifications/tabular/tabular.constants.d.ts +59 -0
  23. package/dist/features/network-modifications/tabular/tabular.constants.js +75 -0
  24. package/dist/features/network-modifications/tabular/tabular.types.d.ts +41 -0
  25. package/dist/features/network-modifications/tabular/tabular.types.js +8 -0
  26. package/dist/features/network-modifications/tabular/tabular.utils.d.ts +68 -0
  27. package/dist/features/network-modifications/tabular/tabular.utils.js +301 -0
  28. package/dist/features/network-modifications/tabular/tabularCreation.utils.d.ts +25 -0
  29. package/dist/features/network-modifications/tabular/tabularCreation.utils.js +276 -0
  30. package/dist/features/network-modifications/tabular/tabularModification.utils.d.ts +43 -0
  31. package/dist/features/network-modifications/tabular/tabularModification.utils.js +406 -0
  32. package/dist/features/network-modifications/voltageLevel/index.d.ts +2 -1
  33. package/dist/features/network-modifications/voltageLevel/index.js +15 -3
  34. package/dist/features/network-modifications/voltageLevel/topology/{CreateVoltageLevelTopologyForm.d.ts → creation/CreateVoltageLevelTopologyForm.d.ts} +1 -1
  35. package/dist/features/network-modifications/voltageLevel/topology/{CreateVoltageLevelTopologyForm.js → creation/CreateVoltageLevelTopologyForm.js} +38 -38
  36. package/dist/features/network-modifications/voltageLevel/topology/{voltageLevelTopologyCreation.types.d.ts → creation/voltageLevelTopologyCreation.types.d.ts} +1 -1
  37. package/dist/features/network-modifications/voltageLevel/topology/{voltageLevelTopologyCreation.utils.d.ts → creation/voltageLevelTopologyCreation.utils.d.ts} +1 -1
  38. package/dist/features/network-modifications/voltageLevel/topology/{voltageLevelTopologyCreation.utils.js → creation/voltageLevelTopologyCreation.utils.js} +5 -5
  39. package/dist/features/network-modifications/voltageLevel/topology/modification/ConnectionCellRender.d.ts +6 -0
  40. package/dist/features/network-modifications/voltageLevel/topology/modification/ConnectionCellRender.js +80 -0
  41. package/dist/features/network-modifications/voltageLevel/topology/modification/VoltageLevelTopologyModificationForm.d.ts +10 -0
  42. package/dist/features/network-modifications/voltageLevel/topology/modification/VoltageLevelTopologyModificationForm.js +284 -0
  43. package/dist/features/network-modifications/voltageLevel/topology/modification/constants.d.ts +10 -0
  44. package/dist/features/network-modifications/voltageLevel/topology/modification/constants.js +10 -0
  45. package/dist/features/network-modifications/voltageLevel/topology/modification/index.d.ts +10 -0
  46. package/dist/features/network-modifications/voltageLevel/topology/modification/index.js +14 -0
  47. package/dist/features/network-modifications/voltageLevel/topology/modification/voltageLevelTopologyModification.types.d.ts +28 -0
  48. package/dist/features/network-modifications/voltageLevel/topology/modification/voltageLevelTopologyModification.types.js +1 -0
  49. package/dist/features/network-modifications/voltageLevel/topology/modification/voltageLevelTopologyModification.utils.d.ts +29 -0
  50. package/dist/features/network-modifications/voltageLevel/topology/modification/voltageLevelTopologyModification.utils.js +124 -0
  51. package/dist/features/parameters/common/index.d.ts +1 -0
  52. package/dist/features/parameters/common/index.js +2 -0
  53. package/dist/features/parameters/common/parameter-field.d.ts +2 -2
  54. package/dist/features/parameters/common/parameter-field.js +1 -1
  55. package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-form.js +1 -1
  56. package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-inline.js +6 -6
  57. package/dist/features/parameters/dynamic-margin-calculation/loads-variations-parameters.js +1 -1
  58. package/dist/features/parameters/dynamic-margin-calculation/time-delay-parameters.js +1 -1
  59. package/dist/features/parameters/dynamic-security-analysis/contingency-parameters.js +1 -1
  60. package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-inline.js +6 -6
  61. package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.js +1 -1
  62. package/dist/features/parameters/dynamic-security-analysis/scenario-parameters.js +1 -1
  63. package/dist/features/parameters/dynamic-simulation/dynamic-simulation-inline.js +6 -6
  64. package/dist/features/parameters/dynamic-simulation/dynamic-simulation-parameters-form.js +1 -1
  65. package/dist/features/parameters/dynamic-simulation/network/network-parameters.js +1 -1
  66. package/dist/features/parameters/dynamic-simulation/solver/common-solver/common-solver-parameters.js +1 -1
  67. package/dist/features/parameters/dynamic-simulation/solver/ida-solver/ida-solver-parameters.js +1 -1
  68. package/dist/features/parameters/dynamic-simulation/solver/sim-solver/simplified-solver-parameters.js +1 -1
  69. package/dist/features/parameters/dynamic-simulation/solver/solver-parameters.js +1 -1
  70. package/dist/features/parameters/dynamic-simulation/time-delay/time-delay-parameters.js +1 -1
  71. package/dist/features/parameters/index.js +2 -0
  72. package/dist/features/parameters/loadflow/load-flow-advanced-parameters.js +1 -1
  73. package/dist/features/parameters/loadflow/load-flow-general-parameters.js +1 -1
  74. package/dist/features/parameters/loadflow/load-flow-parameters-inline.js +5 -5
  75. package/dist/features/parameters/loadflow/load-flow-provider-specific-parameters.js +1 -1
  76. package/dist/features/parameters/network-visualizations/network-visualizations-parameters-inline.js +5 -5
  77. package/dist/features/parameters/pcc-min/pcc-min-parameters-inline.js +5 -5
  78. package/dist/features/parameters/security-analysis/security-analysis-parameters-inline.js +6 -6
  79. package/dist/features/parameters/sensi/sensitivity-analysis-parameters-inline.js +6 -6
  80. package/dist/features/parameters/short-circuit/short-circuit-parameters-inline.js +5 -5
  81. package/dist/features/parameters/voltage-init/voltage-init-parameters-inline.js +5 -5
  82. package/dist/features/side-bar/AppSideBarHeader.js +20 -5
  83. package/dist/features/side-bar/EnvironmentChip.d.ts +13 -0
  84. package/dist/features/side-bar/EnvironmentChip.js +49 -0
  85. package/dist/index.js +84 -5
  86. package/dist/services/appsMetadata.d.ts +2 -0
  87. package/dist/services/directory.d.ts +1 -1
  88. package/dist/services/directory.js +6 -2
  89. package/dist/services/index.js +2 -1
  90. package/dist/services/userAdmin.d.ts +2 -1
  91. package/dist/services/userAdmin.js +9 -1
  92. package/dist/translations/en/businessErrorsEn.d.ts +1 -0
  93. package/dist/translations/en/businessErrorsEn.js +1 -0
  94. package/dist/translations/en/networkModificationsEn.d.ts +85 -0
  95. package/dist/translations/en/networkModificationsEn.js +91 -1
  96. package/dist/translations/fr/businessErrorsFr.d.ts +1 -0
  97. package/dist/translations/fr/businessErrorsFr.js +1 -0
  98. package/dist/translations/fr/networkModificationsFr.d.ts +85 -0
  99. package/dist/translations/fr/networkModificationsFr.js +91 -1
  100. package/dist/utils/constants/index.js +2 -1
  101. package/dist/utils/constants/notificationsProvider.d.ts +1 -0
  102. package/dist/utils/constants/notificationsProvider.js +1 -0
  103. package/dist/utils/constants/translationKeys.d.ts +1 -0
  104. package/dist/utils/constants/translationKeys.js +2 -0
  105. package/dist/utils/index.js +2 -1
  106. package/dist/utils/types/types.d.ts +4 -0
  107. package/package.json +1 -1
  108. /package/dist/features/network-modifications/voltageLevel/topology/{index.d.ts → creation/index.d.ts} +0 -0
  109. /package/dist/features/network-modifications/voltageLevel/topology/{index.js → creation/index.js} +0 -0
  110. /package/dist/features/network-modifications/voltageLevel/topology/{voltageLevelTopologyCreation.types.js → creation/voltageLevelTopologyCreation.types.js} +0 -0
@@ -89,6 +89,7 @@ export declare const businessErrorsFr: {
89
89
  'modification.container.notFound': string;
90
90
  'modification.container.badType': string;
91
91
  'modification.container.type.notFound': string;
92
+ 'modification.badType': string;
92
93
  'modification.notFound': string;
93
94
  'modifications.notFound': string;
94
95
  'modification.infos.error': string;
@@ -83,6 +83,7 @@ const businessErrorsFr = {
83
83
  "modification.container.notFound": "Le container de modification {containerId} de type {containerType} est introuvable",
84
84
  "modification.container.badType": "Le type du container {containerId} est invalide : type actuel {} -> type attendu {expectedContainerType}",
85
85
  "modification.container.type.notFound": "Le type de container pour la modification {modificationId} est introuvable",
86
+ "modification.badType": "Le type de la modification {modificationId} est invalide : type actuel {modificationType} -> type attendu {expectedModificationType}",
86
87
  "modification.notFound": "La modification {modificationId} est introuvable",
87
88
  "modifications.notFound": "Certaines modifications parmi celles ci {ids} n'ont pas été trouvée",
88
89
  "modification.infos.error": "Infos de modification erronées : {errorMessage}",
@@ -432,4 +432,89 @@ export declare const networkModificationsFr: {
432
432
  builtNodeTooltipVlTopoModif: string;
433
433
  notBuiltNodeTooltipVlTopoModif: string;
434
434
  Undefined: string;
435
+ TabularCreation: string;
436
+ TabularModification: string;
437
+ TabularCreationError: string;
438
+ TabularModificationError: string;
439
+ DefinePropertiesButton: string;
440
+ DefinePropertiesTitle: string;
441
+ ModificationsRequiredTabError: string;
442
+ FieldRequired: string;
443
+ DependantFieldMissing: string;
444
+ WrongFieldType: string;
445
+ WrongEnumValue: string;
446
+ WrongBooleanValueWarning: string;
447
+ 'fieldType.boolean': string;
448
+ 'fieldType.number': string;
449
+ TabularCreationShuntWarning: string;
450
+ TabularModificationShuntWarning: string;
451
+ equipmentId: string;
452
+ equipmentName: string;
453
+ voltageLevelId: string;
454
+ busOrBusbarSectionId: string;
455
+ terminalConnected: string;
456
+ connectionName: string;
457
+ connectionName1: string;
458
+ connectionDirection1: string;
459
+ connectionPosition1: string;
460
+ connectionName2: string;
461
+ connectionDirection2: string;
462
+ connectionPosition2: string;
463
+ minQ: string;
464
+ maxQ: string;
465
+ reactiveCapabilityCurve: string;
466
+ reactiveCapabilityCurvePmin: string;
467
+ reactiveCapabilityCurveQminPmin: string;
468
+ reactiveCapabilityCurveQmaxPmin: string;
469
+ reactiveCapabilityCurveP0: string;
470
+ reactiveCapabilityCurveQminP0: string;
471
+ reactiveCapabilityCurveQmaxP0: string;
472
+ reactiveCapabilityCurvePmax: string;
473
+ reactiveCapabilityCurveQminPmax: string;
474
+ reactiveCapabilityCurveQmaxPmax: string;
475
+ regulatingTerminalId: string;
476
+ regulatingTerminalType: string;
477
+ regulatingTerminalVlId: string;
478
+ qPercent: string;
479
+ participate: string;
480
+ droop: string;
481
+ directTransX: string;
482
+ stepUpTransformerX: string;
483
+ plannedActivePowerSetPoint: string;
484
+ nominalV: string;
485
+ ipMin: string;
486
+ ipMax: string;
487
+ r: string;
488
+ x: string;
489
+ g: string;
490
+ b: string;
491
+ g1: string;
492
+ g2: string;
493
+ b1: string;
494
+ b2: string;
495
+ ratedU1: string;
496
+ ratedU2: string;
497
+ ratioTapChangerLoadTapChangingCapabilities: string;
498
+ ratioTapChangerRegulationSide: string;
499
+ 'TabularCreationSkeletonComment.GENERATOR': string;
500
+ 'TabularCreationSkeletonComment.BATTERY': string;
501
+ 'TabularCreationSkeletonComment.LOAD': string;
502
+ 'TabularCreationSkeletonComment.SHUNT_COMPENSATOR': string;
503
+ 'TabularModificationSkeletonComment.SUBSTATION': string;
504
+ 'TabularModificationSkeletonComment.LINE': string;
505
+ 'TabularModificationSkeletonComment.TWO_WINDINGS_TRANSFORMER': string;
506
+ 'TabularModificationSkeletonComment.GENERATOR': string;
507
+ 'TabularModificationSkeletonComment.BATTERY': string;
508
+ 'TabularModificationSkeletonComment.LOAD': string;
509
+ 'TabularModificationSkeletonComment.SHUNT_COMPENSATOR': string;
510
+ ModifyVoltageLevelTopology: string;
511
+ VoltageLevelTopologyModificationError: string;
512
+ switchId: string;
513
+ Open: string;
514
+ Closed: string;
515
+ previousStatus: string;
516
+ currentStatus: string;
517
+ copyPreviousTopologyStatus: string;
518
+ modifiedSwitchesSeparatorTitle: string;
519
+ unModifiedSwitchesSeparatorTitle: string;
435
520
  };
@@ -429,7 +429,97 @@ const networkModificationsFr = {
429
429
  MissingConnectionsInVoltageLevel: "Départs absents du poste (Départs supprimés de la liste à la validation)",
430
430
  builtNodeTooltipVlTopoModif: "Liste des organes de coupure tenant compte de toutes les modifications réalisées",
431
431
  notBuiltNodeTooltipVlTopoModif: "Liste des organes de coupure d'après le dernier nœud réalisé de la branche courante",
432
- Undefined: "Non défini"
432
+ Undefined: "Non défini",
433
+ // Tabular creation / modification - dialog
434
+ TabularCreation: "Création tabulaire",
435
+ TabularModification: "Modification tabulaire",
436
+ TabularCreationError: "Erreur lors de la création tabulaire",
437
+ TabularModificationError: "Erreur lors de la modification tabulaire",
438
+ DefinePropertiesButton: "Définir propriétés",
439
+ DefinePropertiesTitle: "Propriétés complémentaires",
440
+ // Tabular creation / modification - CSV validation
441
+ ModificationsRequiredTabError: "Au moins une modification doit être importée",
442
+ FieldRequired: 'Au moins une valeur est manquante pour le champ requis : "{requiredFieldNameInError}"',
443
+ DependantFieldMissing: 'Le champ "{requiredField}" est requis si le champ suivant est défini : "{dependantField}"',
444
+ WrongFieldType: '"{field}" doit être de type {type}',
445
+ WrongEnumValue: 'Au moins une valeur est inattendue pour le champ : "{field}", valeurs attendues : {expectedValues}',
446
+ WrongBooleanValueWarning: 'Au moins une valeur invalide pour le champ booléen : "{field}" a été automatiquement remplacée par false.',
447
+ "fieldType.boolean": "booléen (true/false)",
448
+ "fieldType.number": "numérique",
449
+ TabularCreationShuntWarning: "La création tabulaire contient des valeurs pour la puissance réactive installée (et/ou le type) et la susceptance installée d'un même MCS. La susceptance installée sera donc ignorée.",
450
+ TabularModificationShuntWarning: "La modification tabulaire contient des valeurs pour la puissance réactive installée (et/ou le type) et la susceptance installée d'un même MCS. La susceptance installée sera donc ignorée.",
451
+ // Tabular creation / modification - CSV columns
452
+ equipmentId: "ID",
453
+ equipmentName: "Nom",
454
+ voltageLevelId: "ID Poste",
455
+ busOrBusbarSectionId: "SJB / nœud",
456
+ terminalConnected: "Connecté",
457
+ connectionName: "Nom départ",
458
+ connectionName1: "Nom départ 1",
459
+ connectionDirection1: "Sens départ 1",
460
+ connectionPosition1: "Position départ 1",
461
+ connectionName2: "Nom départ 2",
462
+ connectionDirection2: "Sens départ 2",
463
+ connectionPosition2: "Position départ 2",
464
+ minQ: "Q min",
465
+ maxQ: "Q max",
466
+ reactiveCapabilityCurve: "Limites de réactif par diagramme",
467
+ reactiveCapabilityCurvePmin: "Pmin",
468
+ reactiveCapabilityCurveQminPmin: "QminPmin",
469
+ reactiveCapabilityCurveQmaxPmin: "QmaxPmin",
470
+ reactiveCapabilityCurveP0: "P0",
471
+ reactiveCapabilityCurveQminP0: "QminP0",
472
+ reactiveCapabilityCurveQmaxP0: "QmaxP0",
473
+ reactiveCapabilityCurvePmax: "Pmax",
474
+ reactiveCapabilityCurveQminPmax: "QminPmax",
475
+ reactiveCapabilityCurveQmaxPmax: "QmaxPmax",
476
+ regulatingTerminalId: "Ouvrage réglé",
477
+ regulatingTerminalType: "Type d'ouvrage réglé",
478
+ regulatingTerminalVlId: "Poste réglé",
479
+ qPercent: "Cœfficient de participation",
480
+ participate: "Compensation",
481
+ droop: "Participation",
482
+ directTransX: "Réactance transitoire (Ω)",
483
+ stepUpTransformerX: "Réactance du transformateur (Ω)",
484
+ plannedActivePowerSetPoint: "P imposée (MW)",
485
+ nominalV: "Tension nominale (kV)",
486
+ ipMin: "ICC min (kA)",
487
+ ipMax: "ICC max (kA)",
488
+ r: "Résistance série (Ω)",
489
+ x: "Réactance série (Ω)",
490
+ g: "Conductance magnétisante (μS)",
491
+ b: "Susceptance magnétisante (μS)",
492
+ g1: "Conductance parallèle 1 (μS)",
493
+ g2: "Conductance parallèle 2 (μS)",
494
+ b1: "Susceptance parallèle 1 (μS)",
495
+ b2: "Susceptance parallèle 2 (μS)",
496
+ ratedU1: "Tension d'enroulement 1 (kV)",
497
+ ratedU2: "Tension d'enroulement 2 (kV)",
498
+ ratioTapChangerLoadTapChangingCapabilities: "Régleur en charge",
499
+ ratioTapChangerRegulationSide: "Côté réglé régleur",
500
+ // Tabular creation / modification - CSV template comments
501
+ "TabularCreationSkeletonComment.GENERATOR": "#;;HYDRO | NUCLEAR | WIND | THERMAL | SOLAR | OTHER;;;true | false;;TOP | BOTTOM;;;;;;;true | false;;;;;;;;;;;;true | false;required if voltageRegulationOn is true;;LINE | TWO_WINDINGS_TRANSFORMER | GENERATOR | LOAD | BATTERY | SHUNT_COMPENSATOR | STATIC_VAR_COMPENSATOR | BOUNDARY_LINE | HVDC_CONVERTER_STATION;;;true | false;;;;;;;",
502
+ "TabularCreationSkeletonComment.BATTERY": "#;;;;true | false;;TOP | BOTTOM;;;;;;true | false;;;;;;;;;;;;true | false;",
503
+ "TabularCreationSkeletonComment.LOAD": "#;;AUXILIARY | FICTITIOUS | UNDEFINED;;;true | false;;TOP | BOTTOM;;;",
504
+ "TabularCreationSkeletonComment.SHUNT_COMPENSATOR": "#Pour chaque MCS il est possible de modifier soit la puissance réactive installée (et le type) soit la susceptance installée. En cas de conflit la susceptance installée sera ignorée.;;;;true | false;;TOP | BOTTOM;;;;REACTOR | CAPACITOR | requis si maxQAtNominalV est défini;;",
505
+ "TabularModificationSkeletonComment.SUBSTATION": "#;;Code à 2 lettres de la norme ISO 3166-1 (FR ES PT IT CH DE BE LU NL GB ...)",
506
+ "TabularModificationSkeletonComment.LINE": "#;;;;;;;;true | false;;TOP | BOTTOM;;true | false;;TOP | BOTTOM;",
507
+ "TabularModificationSkeletonComment.TWO_WINDINGS_TRANSFORMER": "#;;;;;;;;;true | false;;TOP | BOTTOM;;true | false;;TOP | BOTTOM;;true | false;SIDE1 | SIDE2",
508
+ "TabularModificationSkeletonComment.GENERATOR": "#;;HYDRO | NUCLEAR | WIND | THERMAL | SOLAR | OTHER;true | false;;TOP | BOTTOM;;;;;;;true | false;;;;;;;;;;;;true | false;;;LINE | TWO_WINDINGS_TRANSFORMER | GENERATOR | LOAD | BATTERY | SHUNT_COMPENSATOR | STATIC_VAR_COMPENSATOR | BOUNDARY_LINE | HVDC_CONVERTER_STATION;;;true | false;;;;;;;",
509
+ "TabularModificationSkeletonComment.BATTERY": "#;;true | false;;TOP | BOTTOM;;;;;;true | false;;;;;;;;;;;;true | false;",
510
+ "TabularModificationSkeletonComment.LOAD": "#;;AUXILIARY | FICTITIOUS | UNDEFINED;true | false;;TOP | BOTTOM;;;",
511
+ "TabularModificationSkeletonComment.SHUNT_COMPENSATOR": "#Pour chaque MCS il est possible de modifier soit la puissance réactive installée (et le type) soit la susceptance installée. En cas de conflit la susceptance installée sera ignorée.;;true | false;;TOP | BOTTOM;;;;REACTOR | CAPACITOR;;",
512
+ // Voltage level modification
513
+ ModifyVoltageLevelTopology: "Modifier la topologie d'un poste",
514
+ VoltageLevelTopologyModificationError: "Erreur lors de la modification de la topologie de poste",
515
+ switchId: "ID de l'organe de coupure",
516
+ Open: "Ouvert",
517
+ Closed: "Fermé",
518
+ previousStatus: "État précédent",
519
+ currentStatus: "État modifié",
520
+ copyPreviousTopologyStatus: "Compléter avec la topologie précédente",
521
+ modifiedSwitchesSeparatorTitle: "OC modifiés",
522
+ unModifiedSwitchesSeparatorTitle: "OC non-modifiés"
433
523
  };
434
524
  export {
435
525
  networkModificationsFr
@@ -5,7 +5,7 @@ import { MAX_CHAR_DESCRIPTION } from "./uiConstants.js";
5
5
  import { AMPERE, DEGREE, KILO_AMPERE, KILO_METER, KILO_VOLT, MEGA_VAR, MEGA_VOLT_AMPERE, MEGA_WATT, MICRO_SIEMENS, OHM, PERCENTAGE, SIEMENS } from "./unitsConstants.js";
6
6
  import { COMMON_APP_NAME, COMMON_CONFIG_PARAMS_NAMES, LAST_SELECTED_DIRECTORY, PARAM_DEVELOPER_MODE, PARAM_LANGUAGE, PARAM_THEME } from "./configConstants.js";
7
7
  import { FILTERS, FILTER_ID, FILTER_NAME, ID } from "./filterConstant.js";
8
- import { ACTIVE_LIMITS_MIN_MAX_INVALID, CREATE_SUBSTATION_IN_VOLTAGE_LEVEL_IDENTICAL_ID, DESCRIPTION_LIMIT_ERROR, DUPLICATED_PROPS_ERROR, MAXIMUM_SECTION_COUNT_MUST_BE_GREATER_OR_EQUAL_TO_ONE, MIN_ACTIVE_POWER_MUST_BE_LESS_OR_EQUAL_TO_MAX_ACTIVE_POWER, MUST_BE_GREATER_OR_EQUAL_TO_ZERO, NAME_ALREADY_USED, NAME_EMPTY, NORMALIZED_PERCENTAGE, NUMERIC_VALUE_OR_EMPTY_FIELD, REACTIVE_LIMITS_MIN_MAX_INVALID, REAL_PERCENTAGE, SECTION_COUNT_MUST_BE_BETWEEN_ZERO_AND_MAXIMUM_SECTION_COUNT, SHORT_CIRCUIT_CURRENT_LIMIT_MUST_BE_GREATER_OR_EQUAL_TO_ZERO, SHUNT_COMPENSATOR_ERROR_Q_AT_NOMINAL_VOLTAGE_LESS_THAN_ZERO, TARGET_DEADBAND_MUST_BE_GREATER_OR_EQUAL_TO_ZERO, VALUE_MUST_BE_NUMERIC_WHEN_PERCENTAGE_ERROR, VALUE_MUST_BE_REF_WHEN_PERCENTAGE_ERROR, WRONG_REF_OR_VALUE_ERROR, YUP_DEFAULT, YUP_NOT_NULL, YUP_NOT_TYPE_DEFAULT, YUP_NOT_TYPE_NUMBER, YUP_POSITIVE, YUP_REQUIRED } from "./translationKeys.js";
8
+ import { ACTIVE_LIMITS_MIN_MAX_INVALID, CREATE_SUBSTATION_IN_VOLTAGE_LEVEL_IDENTICAL_ID, DESCRIPTION_LIMIT_ERROR, DUPLICATED_PROPS_ERROR, MAXIMUM_SECTION_COUNT_MUST_BE_GREATER_OR_EQUAL_TO_ONE, MIN_ACTIVE_POWER_MUST_BE_LESS_OR_EQUAL_TO_MAX_ACTIVE_POWER, MODIFICATIONS_REQUIRED_TAB_ERROR, MUST_BE_GREATER_OR_EQUAL_TO_ZERO, NAME_ALREADY_USED, NAME_EMPTY, NORMALIZED_PERCENTAGE, NUMERIC_VALUE_OR_EMPTY_FIELD, REACTIVE_LIMITS_MIN_MAX_INVALID, REAL_PERCENTAGE, SECTION_COUNT_MUST_BE_BETWEEN_ZERO_AND_MAXIMUM_SECTION_COUNT, SHORT_CIRCUIT_CURRENT_LIMIT_MUST_BE_GREATER_OR_EQUAL_TO_ZERO, SHUNT_COMPENSATOR_ERROR_Q_AT_NOMINAL_VOLTAGE_LESS_THAN_ZERO, TARGET_DEADBAND_MUST_BE_GREATER_OR_EQUAL_TO_ZERO, VALUE_MUST_BE_NUMERIC_WHEN_PERCENTAGE_ERROR, VALUE_MUST_BE_REF_WHEN_PERCENTAGE_ERROR, WRONG_REF_OR_VALUE_ERROR, YUP_DEFAULT, YUP_NOT_NULL, YUP_NOT_TYPE_DEFAULT, YUP_NOT_TYPE_NUMBER, YUP_POSITIVE, YUP_REQUIRED } from "./translationKeys.js";
9
9
  export {
10
10
  ACTIVE_LIMITS_MIN_MAX_INVALID,
11
11
  AMPERE,
@@ -36,6 +36,7 @@ export {
36
36
  MEGA_WATT,
37
37
  MICRO_SIEMENS,
38
38
  MIN_ACTIVE_POWER_MUST_BE_LESS_OR_EQUAL_TO_MAX_ACTIVE_POWER,
39
+ MODIFICATIONS_REQUIRED_TAB_ERROR,
39
40
  MUST_BE_GREATER_OR_EQUAL_TO_ZERO,
40
41
  MVAPowerAdornment,
41
42
  MicroSusceptanceAdornment,
@@ -2,6 +2,7 @@ export declare enum NotificationsUrlKeys {
2
2
  CONFIG = "CONFIG",
3
3
  GLOBAL_CONFIG = "GLOBAL_CONFIG",
4
4
  STUDY = "STUDY",
5
+ QUOTA = "QUOTA",
5
6
  DIRECTORY = "DIRECTORY",
6
7
  DIRECTORY_DELETE_STUDY = "DIRECTORY_DELETE_STUDY",
7
8
  MONITOR = "MONITOR"
@@ -2,6 +2,7 @@ var NotificationsUrlKeys = /* @__PURE__ */ ((NotificationsUrlKeys2) => {
2
2
  NotificationsUrlKeys2["CONFIG"] = "CONFIG";
3
3
  NotificationsUrlKeys2["GLOBAL_CONFIG"] = "GLOBAL_CONFIG";
4
4
  NotificationsUrlKeys2["STUDY"] = "STUDY";
5
+ NotificationsUrlKeys2["QUOTA"] = "QUOTA";
5
6
  NotificationsUrlKeys2["DIRECTORY"] = "DIRECTORY";
6
7
  NotificationsUrlKeys2["DIRECTORY_DELETE_STUDY"] = "DIRECTORY_DELETE_STUDY";
7
8
  NotificationsUrlKeys2["MONITOR"] = "MONITOR";
@@ -11,6 +11,7 @@ export declare const NORMALIZED_PERCENTAGE = "NormalizedPercentage";
11
11
  export declare const DESCRIPTION_LIMIT_ERROR = "descriptionLimitError";
12
12
  export declare const SHORT_CIRCUIT_CURRENT_LIMIT_MUST_BE_GREATER_OR_EQUAL_TO_ZERO = "ShortCircuitCurrentLimitMustBeGreaterOrEqualToZero";
13
13
  export declare const NAME_EMPTY = "nameEmpty";
14
+ export declare const MODIFICATIONS_REQUIRED_TAB_ERROR = "ModificationsRequiredTabError";
14
15
  export declare const ACTIVE_LIMITS_MIN_MAX_INVALID = "ActiveLimitsMinMaxInvalid";
15
16
  export declare const REACTIVE_LIMITS_MIN_MAX_INVALID = "ReactiveLimitsMinMaxInvalid";
16
17
  export declare const SHUNT_COMPENSATOR_ERROR_Q_AT_NOMINAL_VOLTAGE_LESS_THAN_ZERO = "ShuntCompensatorErrorQAtNominalVoltageLessThanZero";
@@ -11,6 +11,7 @@ const NORMALIZED_PERCENTAGE = "NormalizedPercentage";
11
11
  const DESCRIPTION_LIMIT_ERROR = "descriptionLimitError";
12
12
  const SHORT_CIRCUIT_CURRENT_LIMIT_MUST_BE_GREATER_OR_EQUAL_TO_ZERO = "ShortCircuitCurrentLimitMustBeGreaterOrEqualToZero";
13
13
  const NAME_EMPTY = "nameEmpty";
14
+ const MODIFICATIONS_REQUIRED_TAB_ERROR = "ModificationsRequiredTabError";
14
15
  const ACTIVE_LIMITS_MIN_MAX_INVALID = "ActiveLimitsMinMaxInvalid";
15
16
  const REACTIVE_LIMITS_MIN_MAX_INVALID = "ReactiveLimitsMinMaxInvalid";
16
17
  const SHUNT_COMPENSATOR_ERROR_Q_AT_NOMINAL_VOLTAGE_LESS_THAN_ZERO = "ShuntCompensatorErrorQAtNominalVoltageLessThanZero";
@@ -31,6 +32,7 @@ export {
31
32
  DUPLICATED_PROPS_ERROR,
32
33
  MAXIMUM_SECTION_COUNT_MUST_BE_GREATER_OR_EQUAL_TO_ONE,
33
34
  MIN_ACTIVE_POWER_MUST_BE_LESS_OR_EQUAL_TO_MAX_ACTIVE_POWER,
35
+ MODIFICATIONS_REQUIRED_TAB_ERROR,
34
36
  MUST_BE_GREATER_OR_EQUAL_TO_ZERO,
35
37
  NAME_ALREADY_USED,
36
38
  NAME_EMPTY,
@@ -6,7 +6,7 @@ import { MAX_CHAR_DESCRIPTION } from "./constants/uiConstants.js";
6
6
  import { AMPERE, DEGREE, KILO_AMPERE, KILO_METER, KILO_VOLT, MEGA_VAR, MEGA_VOLT_AMPERE, MEGA_WATT, MICRO_SIEMENS, OHM, PERCENTAGE, SIEMENS } from "./constants/unitsConstants.js";
7
7
  import { COMMON_APP_NAME, COMMON_CONFIG_PARAMS_NAMES, LAST_SELECTED_DIRECTORY, PARAM_DEVELOPER_MODE, PARAM_LANGUAGE, PARAM_THEME } from "./constants/configConstants.js";
8
8
  import { FILTERS, FILTER_ID, FILTER_NAME, ID } from "./constants/filterConstant.js";
9
- import { ACTIVE_LIMITS_MIN_MAX_INVALID, CREATE_SUBSTATION_IN_VOLTAGE_LEVEL_IDENTICAL_ID, DESCRIPTION_LIMIT_ERROR, DUPLICATED_PROPS_ERROR, MAXIMUM_SECTION_COUNT_MUST_BE_GREATER_OR_EQUAL_TO_ONE, MIN_ACTIVE_POWER_MUST_BE_LESS_OR_EQUAL_TO_MAX_ACTIVE_POWER, MUST_BE_GREATER_OR_EQUAL_TO_ZERO, NAME_ALREADY_USED, NAME_EMPTY, NORMALIZED_PERCENTAGE, NUMERIC_VALUE_OR_EMPTY_FIELD, REACTIVE_LIMITS_MIN_MAX_INVALID, REAL_PERCENTAGE, SECTION_COUNT_MUST_BE_BETWEEN_ZERO_AND_MAXIMUM_SECTION_COUNT, SHORT_CIRCUIT_CURRENT_LIMIT_MUST_BE_GREATER_OR_EQUAL_TO_ZERO, SHUNT_COMPENSATOR_ERROR_Q_AT_NOMINAL_VOLTAGE_LESS_THAN_ZERO, TARGET_DEADBAND_MUST_BE_GREATER_OR_EQUAL_TO_ZERO, VALUE_MUST_BE_NUMERIC_WHEN_PERCENTAGE_ERROR, VALUE_MUST_BE_REF_WHEN_PERCENTAGE_ERROR, WRONG_REF_OR_VALUE_ERROR, YUP_DEFAULT, YUP_NOT_NULL, YUP_NOT_TYPE_DEFAULT, YUP_NOT_TYPE_NUMBER, YUP_POSITIVE, YUP_REQUIRED } from "./constants/translationKeys.js";
9
+ import { ACTIVE_LIMITS_MIN_MAX_INVALID, CREATE_SUBSTATION_IN_VOLTAGE_LEVEL_IDENTICAL_ID, DESCRIPTION_LIMIT_ERROR, DUPLICATED_PROPS_ERROR, MAXIMUM_SECTION_COUNT_MUST_BE_GREATER_OR_EQUAL_TO_ONE, MIN_ACTIVE_POWER_MUST_BE_LESS_OR_EQUAL_TO_MAX_ACTIVE_POWER, MODIFICATIONS_REQUIRED_TAB_ERROR, MUST_BE_GREATER_OR_EQUAL_TO_ZERO, NAME_ALREADY_USED, NAME_EMPTY, NORMALIZED_PERCENTAGE, NUMERIC_VALUE_OR_EMPTY_FIELD, REACTIVE_LIMITS_MIN_MAX_INVALID, REAL_PERCENTAGE, SECTION_COUNT_MUST_BE_BETWEEN_ZERO_AND_MAXIMUM_SECTION_COUNT, SHORT_CIRCUIT_CURRENT_LIMIT_MUST_BE_GREATER_OR_EQUAL_TO_ZERO, SHUNT_COMPENSATOR_ERROR_Q_AT_NOMINAL_VOLTAGE_LESS_THAN_ZERO, TARGET_DEADBAND_MUST_BE_GREATER_OR_EQUAL_TO_ZERO, VALUE_MUST_BE_NUMERIC_WHEN_PERCENTAGE_ERROR, VALUE_MUST_BE_REF_WHEN_PERCENTAGE_ERROR, WRONG_REF_OR_VALUE_ERROR, YUP_DEFAULT, YUP_NOT_NULL, YUP_NOT_TYPE_DEFAULT, YUP_NOT_TYPE_NUMBER, YUP_POSITIVE, YUP_REQUIRED } from "./constants/translationKeys.js";
10
10
  import { GRIDSUITE_DEFAULT_PRECISION, convertInputValue, convertOutputValue, isBlankOrEmpty, kiloUnitToUnit, microUnitToUnit, roundToDefaultPrecision, roundToPrecision, toModificationOperation, unitToKiloUnit, unitToMicroUnit } from "./conversionUtils.js";
11
11
  import { catchErrorHandler, extractErrorMessageDescriptor, snackWithFallback } from "./error.js";
12
12
  import { isDisabledValidationButton } from "./form-utils.js";
@@ -106,6 +106,7 @@ export {
106
106
  MEGA_WATT,
107
107
  MICRO_SIEMENS,
108
108
  MIN_ACTIVE_POWER_MUST_BE_LESS_OR_EQUAL_TO_MAX_ACTIVE_POWER,
109
+ MODIFICATIONS_REQUIRED_TAB_ERROR,
109
110
  MODIFICATION_TYPES,
110
111
  MUST_BE_GREATER_OR_EQUAL_TO_ZERO,
111
112
  MVAPowerAdornment,
@@ -72,6 +72,10 @@ export type UserDetail = {
72
72
  maxAllowedDynamicSecurity?: number;
73
73
  maxAllowedDynamicMargin?: number;
74
74
  };
75
+ export type UserQuotaState = {
76
+ current: number;
77
+ max: number;
78
+ };
75
79
  export declare enum AnnouncementSeverity {
76
80
  INFO = "INFO",
77
81
  WARN = "WARN"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsuite/commons-ui",
3
- "version": "0.280.0",
3
+ "version": "0.281.0",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "author": "gridsuite team",
6
6
  "homepage": "https://github.com/gridsuite",