@gridsuite/commons-ui 0.61.0 → 0.61.3

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.
package/README.md CHANGED
@@ -34,12 +34,12 @@ you need to follow the steps below:
34
34
  - Build it: `npm install`
35
35
  - Commit the package.json and package-lock.json files, push to a branch, make a PR, have it reviewed and merged to main.
36
36
  - Pull and checkout main on your last commit.
37
- - [Tag your last commit](https://semver.org/) : `git tag <tag>` (example: `v0.6.0`)
38
- - Push tag : `git push origin <tag>`
39
- - Checkout the tag in a fresh repo copy : `cd $(mktemp -d) && git clone https://github.com/gridsuite/commons-ui.git` then `cd commons-ui && git checkout <tag>`
40
- - [Test your package](https://docs.npmjs.com/creating-and-publishing-scoped-public-packages#testing-your-package): `npm install`
41
- - [Login on the command line to the npm registry](https://docs.npmjs.com/logging-in-to-an-npm-enterprise-registry-from-the-command-line): `npm login`
42
- - [Publish the package](https://docs.npmjs.com/creating-and-publishing-scoped-public-packages#publishing-scoped-public-packages): `npm publish`
37
+ - [Make a release](https://github.com/gridsuite/commons-ui/releases/new) on GitHub by creating a new tag on the last commit. On the release creation page:
38
+ - In "Choose a tag": type the tag you want to create (ex.: v0.6.0) and select "create new tag"
39
+ - In "Target": click on "recent commit" tab and select your release commit
40
+ - Click on "Generate release note"
41
+ - Click on "Publish release"
42
+ - It will trigger a job that will publish the release on NPM
43
43
 
44
44
  #### License Headers and dependencies checking
45
45
 
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
- import { useState, useEffect, useMemo, useCallback } from "react";
2
+ import { useState, useEffect, useCallback } from "react";
3
3
  import { useTheme, Dialog, useMediaQuery, DialogTitle, Collapse, Alert, Box, Fade, CircularProgress, Typography, DialogContent, Accordion, AccordionSummary, AccordionDetails, Grid, DialogActions, Button, Tooltip, Zoom, Stack, tooltipClasses } from "@mui/material";
4
4
  import { LoadingButton } from "@mui/lab";
5
5
  import { Refresh, ExpandMore, Gavel, Apps, WidgetsOutlined, DnsOutlined, QuestionMark } from "@mui/icons-material";
@@ -115,18 +115,15 @@ const AboutDialog = ({
115
115
  }, [open, globalVersionPromise]);
116
116
  const [loadingAdditionalModules, setLoadingAdditionalModules] = useState(false);
117
117
  const [modules, setModules] = useState(null);
118
- const currentApp = useMemo(
119
- () => ({
120
- name: !!logo && appName || `Grid${appName}`,
121
- type: "app",
122
- version: appVersion,
123
- gitTag: appGitTag,
124
- license: appLicense
125
- }),
126
- [logo, appName, appVersion, appGitTag, appLicense]
127
- );
128
118
  useEffect(() => {
129
119
  if (open) {
120
+ const currentApp = {
121
+ name: `Grid${appName}`,
122
+ type: "app",
123
+ version: appVersion,
124
+ gitTag: appGitTag,
125
+ license: appLicense
126
+ };
130
127
  (additionalModulesPromise ? Promise.resolve(setLoadingAdditionalModules(true)).then(
131
128
  () => additionalModulesPromise()
132
129
  ) : Promise.reject(new Error("no getter"))).then(
@@ -136,7 +133,14 @@ const AboutDialog = ({
136
133
  setModules([currentApp, ...values]);
137
134
  }).finally(() => setLoadingAdditionalModules(false));
138
135
  }
139
- }, [open, additionalModulesPromise, currentApp]);
136
+ }, [
137
+ open,
138
+ additionalModulesPromise,
139
+ appName,
140
+ appVersion,
141
+ appGitTag,
142
+ appLicense
143
+ ]);
140
144
  const handleClose = useCallback(() => {
141
145
  if (onClose) {
142
146
  onClose();
@@ -491,12 +491,6 @@ export declare const FIELDS_OPTIONS: {
491
491
  dataType: DataType;
492
492
  valueEditorType: string;
493
493
  };
494
- RATIO_REGULATING: {
495
- name: FieldType;
496
- label: string;
497
- dataType: DataType;
498
- valueEditorType: string;
499
- };
500
494
  LOAD_TAP_CHANGING_CAPABILITIES: {
501
495
  name: FieldType;
502
496
  label: string;
@@ -526,12 +520,6 @@ export declare const FIELDS_OPTIONS: {
526
520
  dataType: DataType;
527
521
  valueEditorType: string;
528
522
  };
529
- PHASE_REGULATING: {
530
- name: FieldType;
531
- label: string;
532
- dataType: DataType;
533
- valueEditorType: string;
534
- };
535
523
  PHASE_REGULATION_MODE: {
536
524
  name: FieldType;
537
525
  label: string;
@@ -62,8 +62,8 @@ const LOAD_TYPE_OPTIONS = [
62
62
  { name: "FICTITIOUS", label: "Fictitious" }
63
63
  ];
64
64
  const RATIO_REGULATION_MODE_OPTIONS = [
65
- { name: "VOLTAGE", label: "Voltage" },
66
- { name: "REACTIVE_POWER", label: "ReactivePower" }
65
+ { name: "VOLTAGE_REGULATION", label: "VoltageRegulation" },
66
+ { name: "FIXED_RATIO", label: "FixedRatio" }
67
67
  ];
68
68
  const PHASE_REGULATION_MODE_OPTIONS = [
69
69
  { name: "CURRENT_LIMITER", label: "CurrentLimiter" },
@@ -469,12 +469,6 @@ const FIELDS_OPTIONS = {
469
469
  dataType: DataType.BOOLEAN,
470
470
  valueEditorType: "switch"
471
471
  },
472
- RATIO_REGULATING: {
473
- name: FieldType.RATIO_REGULATING,
474
- label: "regulatingRatio",
475
- dataType: DataType.BOOLEAN,
476
- valueEditorType: "switch"
477
- },
478
472
  LOAD_TAP_CHANGING_CAPABILITIES: {
479
473
  name: FieldType.LOAD_TAP_CHANGING_CAPABILITIES,
480
474
  label: "loadTapChangingCapabilities",
@@ -487,7 +481,7 @@ const FIELDS_OPTIONS = {
487
481
  dataType: DataType.ENUM,
488
482
  values: RATIO_REGULATION_MODE_OPTIONS,
489
483
  valueEditorType: "select",
490
- defaultValue: "VOLTAGE"
484
+ defaultValue: "VOLTAGE_REGULATION"
491
485
  },
492
486
  RATIO_TARGET_V: {
493
487
  name: FieldType.RATIO_TARGET_V,
@@ -501,12 +495,6 @@ const FIELDS_OPTIONS = {
501
495
  dataType: DataType.BOOLEAN,
502
496
  valueEditorType: "switch"
503
497
  },
504
- PHASE_REGULATING: {
505
- name: FieldType.PHASE_REGULATING,
506
- label: "phaseRegulating",
507
- dataType: DataType.BOOLEAN,
508
- valueEditorType: "switch"
509
- },
510
498
  PHASE_REGULATION_MODE: {
511
499
  name: FieldType.PHASE_REGULATION_MODE,
512
500
  label: "phaseRegulationMode",
@@ -715,10 +703,8 @@ const fields = {
715
703
  FIELDS_OPTIONS.HAS_RATIO_TAP_CHANGER,
716
704
  FIELDS_OPTIONS.LOAD_TAP_CHANGING_CAPABILITIES,
717
705
  FIELDS_OPTIONS.RATIO_REGULATION_MODE,
718
- FIELDS_OPTIONS.RATIO_REGULATING,
719
706
  FIELDS_OPTIONS.RATIO_TARGET_V,
720
707
  FIELDS_OPTIONS.HAS_PHASE_TAP_CHANGER,
721
- FIELDS_OPTIONS.PHASE_REGULATING,
722
708
  FIELDS_OPTIONS.PHASE_REGULATION_MODE,
723
709
  FIELDS_OPTIONS.PHASE_REGULATION_VALUE,
724
710
  FIELDS_OPTIONS.PROPERTY,
@@ -75,12 +75,10 @@ export declare enum FieldType {
75
75
  RATED_VOLTAGE_1 = "RATED_VOLTAGE_1",
76
76
  RATED_VOLTAGE_2 = "RATED_VOLTAGE_2",
77
77
  HAS_RATIO_TAP_CHANGER = "HAS_RATIO_TAP_CHANGER",
78
- RATIO_REGULATING = "RATIO_REGULATING",
79
78
  LOAD_TAP_CHANGING_CAPABILITIES = "LOAD_TAP_CHANGING_CAPABILITIES",
80
79
  RATIO_REGULATION_MODE = "RATIO_REGULATION_MODE",
81
80
  RATIO_TARGET_V = "RATIO_TARGET_V",
82
81
  HAS_PHASE_TAP_CHANGER = "HAS_PHASE_TAP_CHANGER",
83
- PHASE_REGULATING = "PHASE_REGULATING",
84
82
  PHASE_REGULATION_MODE = "PHASE_REGULATION_MODE",
85
83
  PHASE_REGULATION_VALUE = "PHASE_REGULATION_VALUE",
86
84
  PROPERTY = "FREE_PROPERTIES",
@@ -75,12 +75,10 @@ var FieldType = /* @__PURE__ */ ((FieldType2) => {
75
75
  FieldType2["RATED_VOLTAGE_1"] = "RATED_VOLTAGE_1";
76
76
  FieldType2["RATED_VOLTAGE_2"] = "RATED_VOLTAGE_2";
77
77
  FieldType2["HAS_RATIO_TAP_CHANGER"] = "HAS_RATIO_TAP_CHANGER";
78
- FieldType2["RATIO_REGULATING"] = "RATIO_REGULATING";
79
78
  FieldType2["LOAD_TAP_CHANGING_CAPABILITIES"] = "LOAD_TAP_CHANGING_CAPABILITIES";
80
79
  FieldType2["RATIO_REGULATION_MODE"] = "RATIO_REGULATION_MODE";
81
80
  FieldType2["RATIO_TARGET_V"] = "RATIO_TARGET_V";
82
81
  FieldType2["HAS_PHASE_TAP_CHANGER"] = "HAS_PHASE_TAP_CHANGER";
83
- FieldType2["PHASE_REGULATING"] = "PHASE_REGULATING";
84
82
  FieldType2["PHASE_REGULATION_MODE"] = "PHASE_REGULATION_MODE";
85
83
  FieldType2["PHASE_REGULATION_VALUE"] = "PHASE_REGULATION_VALUE";
86
84
  FieldType2["PROPERTY"] = "FREE_PROPERTIES";
@@ -34,7 +34,6 @@ declare const filter_expert_en: {
34
34
  p0: string;
35
35
  q0: string;
36
36
  loadTapChangingCapabilities: string;
37
- regulatingRatio: string;
38
37
  ratioTargetV: string;
39
38
  magnetizingConductance: string;
40
39
  magnetizingSusceptance: string;
@@ -51,12 +50,13 @@ declare const filter_expert_en: {
51
50
  hasPhaseTapChanger: string;
52
51
  Voltage: string;
53
52
  ReactivePower: string;
53
+ VoltageRegulation: string;
54
+ FixedRatio: string;
54
55
  CurrentLimiter: string;
55
56
  ActivePowerControl: string;
56
57
  FixedTap: string;
57
58
  ratioRegulationMode: string;
58
59
  phaseRegulationMode: string;
59
- phaseRegulating: string;
60
60
  phaseRegulationValue: string;
61
61
  property: string;
62
62
  substationProperty: string;
@@ -28,7 +28,6 @@ const filter_expert_en = {
28
28
  p0: "Constant P (MW)",
29
29
  q0: "Constant Q (MVar)",
30
30
  loadTapChangingCapabilities: "Ratio tap changer on-load",
31
- regulatingRatio: "Ratio tap changer regulating",
32
31
  ratioTargetV: "Ratio tap changer voltage set point (kV)",
33
32
  magnetizingConductance: "Magnetizing conductance (μS)",
34
33
  magnetizingSusceptance: "Magnetizing susceptance (μS)",
@@ -45,12 +44,13 @@ const filter_expert_en = {
45
44
  hasPhaseTapChanger: "Phase tap changer exists",
46
45
  Voltage: "Voltage",
47
46
  ReactivePower: "Reactive power",
47
+ VoltageRegulation: "Voltage regulation",
48
+ FixedRatio: "Fixed ratio",
48
49
  CurrentLimiter: "Current limiter",
49
50
  ActivePowerControl: "Active power control",
50
51
  FixedTap: "Fixed tap",
51
52
  ratioRegulationMode: "Ratio tap changer regulation mode",
52
53
  phaseRegulationMode: "Phase tap changer regulation mode",
53
- phaseRegulating: "Phase tap changer regulating",
54
54
  phaseRegulationValue: "Phase tap changer flow set point or current limit",
55
55
  property: "Property",
56
56
  substationProperty: "Substation property",
@@ -34,7 +34,6 @@ declare const filter_expert_fr: {
34
34
  p0: string;
35
35
  q0: string;
36
36
  loadTapChangingCapabilities: string;
37
- regulatingRatio: string;
38
37
  ratioTargetV: string;
39
38
  magnetizingConductance: string;
40
39
  magnetizingSusceptance: string;
@@ -51,12 +50,13 @@ declare const filter_expert_fr: {
51
50
  hasPhaseTapChanger: string;
52
51
  Voltage: string;
53
52
  ReactivePower: string;
53
+ VoltageRegulation: string;
54
+ FixedRatio: string;
54
55
  CurrentLimiter: string;
55
56
  ActivePowerControl: string;
56
57
  FixedTap: string;
57
58
  ratioRegulationMode: string;
58
59
  phaseRegulationMode: string;
59
- phaseRegulating: string;
60
60
  phaseRegulationValue: string;
61
61
  property: string;
62
62
  substationProperty: string;
@@ -28,7 +28,6 @@ const filter_expert_fr = {
28
28
  p0: "P constant (MW)",
29
29
  q0: "Q constant (MVar)",
30
30
  loadTapChangingCapabilities: "Régleur en charge",
31
- regulatingRatio: "Régleur en réglage",
32
31
  ratioTargetV: "Tension de consigne du régleur (kV)",
33
32
  magnetizingConductance: "Conductance magnétisante (μS)",
34
33
  magnetizingSusceptance: "Susceptance magnétisante (μS)",
@@ -45,12 +44,13 @@ const filter_expert_fr = {
45
44
  hasPhaseTapChanger: "Déphaseur existe",
46
45
  Voltage: "Tension",
47
46
  ReactivePower: "Puissance réactive",
47
+ VoltageRegulation: "Réglage tension",
48
+ FixedRatio: "Rapport fixe",
48
49
  CurrentLimiter: "Limitation de courant",
49
50
  ActivePowerControl: "Suivi de transit",
50
51
  FixedTap: "Déphasage constant",
51
52
  ratioRegulationMode: "Mode de réglage régleur",
52
53
  phaseRegulationMode: "Mode de réglage déphaseur",
53
- phaseRegulating: "Déphaseur en réglage",
54
54
  phaseRegulationValue: "Consigne de transit ou du courant du déphaseur",
55
55
  property: "Propriété",
56
56
  substationProperty: "Propriété site",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsuite/commons-ui",
3
- "version": "0.61.0",
3
+ "version": "0.61.3",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "engines": {
6
6
  "npm": ">=9",