@gridsuite/commons-ui 0.289.0 → 0.291.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 (27) hide show
  1. package/dist/components/composite/customAGGrid/custom-aggrid-types.d.ts +4 -2
  2. package/dist/components/composite/customAGGrid/custom-aggrid-types.js +1 -0
  3. package/dist/components/composite/customAGGrid/index.d.ts +1 -0
  4. package/dist/components/composite/customAGGrid/index.js +3 -0
  5. package/dist/components/composite/customAGGrid/user-avatar.d.ts +12 -0
  6. package/dist/components/composite/customAGGrid/user-avatar.js +49 -0
  7. package/dist/components/composite/index.js +3 -0
  8. package/dist/components/index.js +3 -0
  9. package/dist/features/index.js +5 -3
  10. package/dist/features/parameters/index.js +5 -3
  11. package/dist/features/parameters/network-visualizations/constants.d.ts +4 -2
  12. package/dist/features/parameters/network-visualizations/constants.js +8 -4
  13. package/dist/features/parameters/network-visualizations/index.js +5 -3
  14. package/dist/features/parameters/network-visualizations/network-visualizations.types.d.ts +2 -1
  15. package/dist/features/parameters/network-visualizations/single-line-diagram-parameters.js +3 -2
  16. package/dist/features/parameters/network-visualizations/use-network-visualizations-parameters-form.js +5 -3
  17. package/dist/features/side-bar/footer/profile/UserIcon.js +1 -11
  18. package/dist/index.js +8 -3
  19. package/dist/translations/en/parameters.d.ts +2 -1
  20. package/dist/translations/en/parameters.js +2 -1
  21. package/dist/translations/fr/parameters.d.ts +2 -1
  22. package/dist/translations/fr/parameters.js +2 -1
  23. package/dist/utils/store-sort-filter-fields.d.ts +1 -0
  24. package/dist/utils/store-sort-filter-fields.js +2 -0
  25. package/dist/utils/user-utils.d.ts +7 -0
  26. package/dist/utils/user-utils.js +14 -0
  27. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { ColDef, ComponentType, GridApi, IFilterOptionDef } from 'ag-grid-community';
2
2
  import { UUID } from 'crypto';
3
- import { DYNAMIC_SIMULATION_RESULT_SORT_STORE, LOADFLOW_RESULT_SORT_STORE, PCCMIN_ANALYSIS_RESULT_SORT_STORE, SECURITY_ANALYSIS_RESULT_SORT_STORE, SENSITIVITY_ANALYSIS_RESULT_SORT_STORE, SHORTCIRCUIT_ANALYSIS_RESULT_SORT_STORE, SPREADSHEET_SORT_STORE, STATEESTIMATION_RESULT_SORT_STORE } from '../../../utils/store-sort-filter-fields';
3
+ import { DYNAMIC_SIMULATION_RESULT_SORT_STORE, LOADFLOW_RESULT_SORT_STORE, PCCMIN_ANALYSIS_RESULT_SORT_STORE, PROCESS_EXECUTION_HISTORY_SORT_STORE, SECURITY_ANALYSIS_RESULT_SORT_STORE, SENSITIVITY_ANALYSIS_RESULT_SORT_STORE, SHORTCIRCUIT_ANALYSIS_RESULT_SORT_STORE, SPREADSHEET_SORT_STORE, STATEESTIMATION_RESULT_SORT_STORE } from '../../../utils/store-sort-filter-fields';
4
4
  export declare enum TableType {
5
5
  Loadflow = "Loadflow",
6
6
  SecurityAnalysis = "SecurityAnalysis",
@@ -11,7 +11,8 @@ export declare enum TableType {
11
11
  Logs = "Logs",
12
12
  StateEstimation = "StateEstimation",
13
13
  PccMin = "PccMin",
14
- VoltageInit = "VoltageInit"
14
+ VoltageInit = "VoltageInit",
15
+ ProcessExecutionHistory = "ProcessExecutionHistory"
15
16
  }
16
17
  export declare enum FilterDataTypes {
17
18
  TEXT = "text",
@@ -83,6 +84,7 @@ export type TableSort = {
83
84
  [SHORTCIRCUIT_ANALYSIS_RESULT_SORT_STORE]: TableSortConfig;
84
85
  [STATEESTIMATION_RESULT_SORT_STORE]: TableSortConfig;
85
86
  [PCCMIN_ANALYSIS_RESULT_SORT_STORE]: TableSortConfig;
87
+ [PROCESS_EXECUTION_HISTORY_SORT_STORE]: TableSortConfig;
86
88
  };
87
89
  export type TableSortKeysType = keyof TableSort;
88
90
  export type SortParams = {
@@ -9,6 +9,7 @@ var TableType = /* @__PURE__ */ ((TableType2) => {
9
9
  TableType2["StateEstimation"] = "StateEstimation";
10
10
  TableType2["PccMin"] = "PccMin";
11
11
  TableType2["VoltageInit"] = "VoltageInit";
12
+ TableType2["ProcessExecutionHistory"] = "ProcessExecutionHistory";
12
13
  return TableType2;
13
14
  })(TableType || {});
14
15
  var FilterDataTypes = /* @__PURE__ */ ((FilterDataTypes2) => {
@@ -17,3 +17,4 @@ export * from './custom-aggrid-menu';
17
17
  export * from './custom-aggrid-sort';
18
18
  export * from './display-rounding';
19
19
  export * from './utils';
20
+ export * from './user-avatar';
@@ -19,6 +19,7 @@ import { CustomMenu } from "./custom-aggrid-menu.js";
19
19
  import { CustomAggridSort } from "./custom-aggrid-sort.js";
20
20
  import { DisplayRounding } from "./display-rounding.js";
21
21
  import { makeAgGridCustomHeaderColumn } from "./utils/custom-aggrid-header-utils.js";
22
+ import { UserAvatar, UserAvatarWithLabel } from "./user-avatar.js";
22
23
  export {
23
24
  BooleanCellRenderer,
24
25
  BooleanNullableCellRenderer,
@@ -50,6 +51,8 @@ export {
50
51
  SortWay,
51
52
  TableType,
52
53
  UndisplayedFilterNumberComparators,
54
+ UserAvatar,
55
+ UserAvatarWithLabel,
53
56
  addToleranceToFilter,
54
57
  computeTolerance,
55
58
  makeAgGridCustomHeaderColumn,
@@ -0,0 +1,12 @@
1
+ export type UserAvatarSize = 'small' | 'medium';
2
+ export type UserAvatarProps = {
3
+ label: string;
4
+ size?: UserAvatarSize;
5
+ backgroundColor?: string;
6
+ };
7
+ /** Colored initials avatar for a user. */
8
+ export declare function UserAvatar({ label, size, backgroundColor }: Readonly<UserAvatarProps>): import("react").JSX.Element;
9
+ /** A user name preceded by its avatar, in a compact size. */
10
+ export declare function UserAvatarWithLabel({ label }: Readonly<{
11
+ label: string;
12
+ }>): import("react").JSX.Element;
@@ -0,0 +1,49 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { Tooltip, Avatar, Box } from "@mui/material";
3
+ import "../../../utils/conversionUtils.js";
4
+ import "../../../utils/types/equipmentType.js";
5
+ import "@mui/icons-material";
6
+ import { mergeSx } from "../../../utils/styles.js";
7
+ import { getAbbreviationFromUserName } from "../../../utils/user-utils.js";
8
+ const FERMAT_PRIME = 65537;
9
+ function stringToColor(string) {
10
+ let hash = 0;
11
+ const stringUniqueHash = [...string].reduce((acc, char) => {
12
+ hash = char.charCodeAt(0) + ((acc << 5) - acc) * FERMAT_PRIME;
13
+ return hash & hash;
14
+ }, 0);
15
+ return `hsl(${stringUniqueHash % 360}, 50%, 50%)`;
16
+ }
17
+ const styles = {
18
+ avatar: (theme) => ({
19
+ height: "32px",
20
+ width: "32px",
21
+ fontSize: theme.typography.fontSize
22
+ }),
23
+ avatarSmall: (theme) => ({
24
+ height: "24px",
25
+ width: "24px",
26
+ fontSize: theme.typography.pxToRem(11)
27
+ })
28
+ };
29
+ function UserAvatar({ label, size = "medium", backgroundColor }) {
30
+ return /* @__PURE__ */ jsx(Tooltip, { title: label, children: /* @__PURE__ */ jsx(
31
+ Avatar,
32
+ {
33
+ sx: mergeSx(size === "small" ? styles.avatarSmall : styles.avatar, (theme) => ({
34
+ backgroundColor: backgroundColor ?? (label ? stringToColor(label) : theme.row.hover)
35
+ })),
36
+ children: getAbbreviationFromUserName(label)
37
+ }
38
+ ) });
39
+ }
40
+ function UserAvatarWithLabel({ label }) {
41
+ return /* @__PURE__ */ jsxs(Box, { sx: { display: "inline-flex", alignItems: "center", gap: 1 }, children: [
42
+ /* @__PURE__ */ jsx(UserAvatar, { label, size: "small" }),
43
+ label
44
+ ] });
45
+ }
46
+ export {
47
+ UserAvatar,
48
+ UserAvatarWithLabel
49
+ };
@@ -66,6 +66,7 @@ import { CustomMenu } from "./customAGGrid/custom-aggrid-menu.js";
66
66
  import { CustomAggridSort } from "./customAGGrid/custom-aggrid-sort.js";
67
67
  import { DisplayRounding } from "./customAGGrid/display-rounding.js";
68
68
  import { makeAgGridCustomHeaderColumn } from "./customAGGrid/utils/custom-aggrid-header-utils.js";
69
+ import { UserAvatar, UserAvatarWithLabel } from "./customAGGrid/user-avatar.js";
69
70
  import { ReportViewer } from "./report/report-viewer/report-viewer.js";
70
71
  import { ReportFetcherContext, ReportFilterContext, useReportFetcherContext, useReportFilterContext } from "./report/report-viewer/context/report-viewer-context.js";
71
72
  import { default as default2 } from "./report/report-viewer/log-table/log-table.js";
@@ -173,6 +174,8 @@ export {
173
174
  TextValueEditor,
174
175
  TranslatedValueEditor,
175
176
  UndisplayedFilterNumberComparators,
177
+ UserAvatar,
178
+ UserAvatarWithLabel,
176
179
  ValueEditor,
177
180
  ValueSelector,
178
181
  addToleranceToFilter,
@@ -150,6 +150,7 @@ import { CustomMenu } from "./composite/customAGGrid/custom-aggrid-menu.js";
150
150
  import { CustomAggridSort } from "./composite/customAGGrid/custom-aggrid-sort.js";
151
151
  import { DisplayRounding } from "./composite/customAGGrid/display-rounding.js";
152
152
  import { makeAgGridCustomHeaderColumn } from "./composite/customAGGrid/utils/custom-aggrid-header-utils.js";
153
+ import { UserAvatar, UserAvatarWithLabel } from "./composite/customAGGrid/user-avatar.js";
153
154
  import { ReportViewer } from "./composite/report/report-viewer/report-viewer.js";
154
155
  import { ReportFetcherContext, ReportFilterContext, useReportFetcherContext, useReportFilterContext } from "./composite/report/report-viewer/context/report-viewer-context.js";
155
156
  import { default as default2 } from "./composite/report/report-viewer/log-table/log-table.js";
@@ -342,6 +343,8 @@ export {
342
343
  TreeViewFinder,
343
344
  UndisplayedFilterNumberComparators,
344
345
  UniqueNameInput,
346
+ UserAvatar,
347
+ UserAvatarWithLabel,
345
348
  ValueEditor,
346
349
  ValueSelector,
347
350
  VoltageUnitIcon,
@@ -45,7 +45,7 @@ import { LimitReductionTableCell } from "./parameters/common/limitreductions/lim
45
45
  import { ContingencyTable } from "./parameters/common/contingency-table/contingency-table.js";
46
46
  import { COLUMNS_DEFINITIONS_CONTINGENCY_LISTS_INFOS, getContingencyListsInfosFormSchema, isValidContingencyRow, toFormValuesContingencyListsInfos } from "./parameters/common/contingency-table/columns-definitions.js";
47
47
  import { useParametersForm } from "./parameters/common/hook/use-parameters-form.js";
48
- import { CENTER_LABEL, COMPONENT_LIBRARY, CUSTOM_REAL_TIME_STATE_ESTIMATION, DIAGONAL_LABEL, INTL_LINE_FLOW_MODE_OPTIONS, INTL_SUBSTATION_LAYOUT_OPTIONS, LINE_FLOW_MODE, LineFlowMode, MAP_BASE_MAP, MAP_MANUAL_REFRESH, NAD_POSITIONS_GENERATION_MODE, NAD_POSITIONS_GENERATION_MODE_LABEL, NV_TAB_VALUES, NetworkVisualizationTabValues, PARAM_CENTER_LABEL, PARAM_COMPONENT_LIBRARY, PARAM_DIAGONAL_LABEL, PARAM_LINE_FLOW_MODE, PARAM_LINE_FULL_PATH, PARAM_LINE_PARALLEL_PATH, PARAM_MAP_BASEMAP, PARAM_MAP_MANUAL_REFRESH, PARAM_NAD_POSITIONS_GENERATION_MODE, PARAM_STATE_ESTIMATION, PARAM_SUBSTATION_LAYOUT, SUBSTATION_LAYOUT } from "./parameters/network-visualizations/constants.js";
48
+ import { CENTER_LABEL, COMPONENT_LIBRARY, DIAGONAL_LABEL, INTL_LINE_FLOW_MODE_OPTIONS, INTL_SUBSTATION_LAYOUT_OPTIONS, LINE_FLOW_MODE, LineFlowMode, MAP_BASE_MAP, MAP_MANUAL_REFRESH, MEASUREMENTS_LABEL, NAD_POSITIONS_GENERATION_MODE, NAD_POSITIONS_GENERATION_MODE_LABEL, NV_TAB_VALUES, NetworkVisualizationTabValues, OBSERVABILITY_LABEL, PARAM_CENTER_LABEL, PARAM_COMPONENT_LIBRARY, PARAM_DIAGONAL_LABEL, PARAM_LINE_FLOW_MODE, PARAM_LINE_FULL_PATH, PARAM_LINE_PARALLEL_PATH, PARAM_MAP_BASEMAP, PARAM_MAP_MANUAL_REFRESH, PARAM_MEASUREMENTS, PARAM_NAD_POSITIONS_GENERATION_MODE, PARAM_OBSERVABILITY, PARAM_SUBSTATION_LAYOUT, SUBSTATION_LAYOUT } from "./parameters/network-visualizations/constants.js";
49
49
  import { MAP_BASEMAP_CARTO, MAP_BASEMAP_CARTO_NOLABEL, MAP_BASEMAP_ETALAB, MAP_BASEMAP_MAPBOX, NadPositionsGenerationMode, SubstationLayout } from "./parameters/network-visualizations/network-visualizations.types.js";
50
50
  import { NetworkVisualizationParametersInline } from "./parameters/network-visualizations/network-visualizations-parameters-inline.js";
51
51
  import { NetworkVisualizationsParametersEditionDialog } from "./parameters/network-visualizations/network-visualizations-parameters-dialog.js";
@@ -382,7 +382,6 @@ export {
382
382
  CONTINGENCY_LISTS_INFOS,
383
383
  COUNTRIES_TO_BALANCE,
384
384
  CURRENT_CONNECTION_STATUS,
385
- CUSTOM_REAL_TIME_STATE_ESTIMATION,
386
385
  CardErrorBoundary,
387
386
  CharacteristicsForm,
388
387
  ConnectivityForm,
@@ -524,6 +523,7 @@ export {
524
523
  MAX_RECENT_GLOBAL_FILTERS,
525
524
  MAX_SECTIONS_COUNT,
526
525
  MAX_VALUE_ALLOWED_FOR_LIMIT_REDUCTION,
526
+ MEASUREMENTS_LABEL,
527
527
  MIN_VALUE_ALLOWED_FOR_LIMIT_REDUCTION,
528
528
  MODIFICATION_ROW_HEIGHT,
529
529
  MODIFICATION_TRANSFORMATION_STRATEGIES,
@@ -550,6 +550,7 @@ export {
550
550
  NmkType,
551
551
  NotificationsContext,
552
552
  NotificationsProvider,
553
+ OBSERVABILITY_LABEL,
553
554
  ONE_BUS,
554
555
  OPERATIONAL_LIMITS_GROUPS_MODIFICATION_TYPE,
555
556
  OPERATOR,
@@ -564,9 +565,10 @@ export {
564
565
  PARAM_LINE_PARALLEL_PATH,
565
566
  PARAM_MAP_BASEMAP,
566
567
  PARAM_MAP_MANUAL_REFRESH,
568
+ PARAM_MEASUREMENTS,
567
569
  PARAM_NAD_POSITIONS_GENERATION_MODE,
570
+ PARAM_OBSERVABILITY,
568
571
  PARAM_PROVIDER_OPENLOADFLOW,
569
- PARAM_STATE_ESTIMATION,
570
572
  PARAM_SUBSTATION_LAYOUT,
571
573
  PHASE_SHIFTER_REGULATION_ON,
572
574
  POSITION_NEW_SECTION_SIDE,
@@ -22,7 +22,7 @@ import { LimitReductionTableCell } from "./common/limitreductions/limit-reductio
22
22
  import { ContingencyTable } from "./common/contingency-table/contingency-table.js";
23
23
  import { COLUMNS_DEFINITIONS_CONTINGENCY_LISTS_INFOS, getContingencyListsInfosFormSchema, isValidContingencyRow, toFormValuesContingencyListsInfos } from "./common/contingency-table/columns-definitions.js";
24
24
  import { useParametersForm } from "./common/hook/use-parameters-form.js";
25
- import { CENTER_LABEL, COMPONENT_LIBRARY, CUSTOM_REAL_TIME_STATE_ESTIMATION, DIAGONAL_LABEL, INTL_LINE_FLOW_MODE_OPTIONS, INTL_SUBSTATION_LAYOUT_OPTIONS, LINE_FLOW_MODE, LineFlowMode, MAP_BASE_MAP, MAP_MANUAL_REFRESH, NAD_POSITIONS_GENERATION_MODE, NAD_POSITIONS_GENERATION_MODE_LABEL, NV_TAB_VALUES, NetworkVisualizationTabValues, PARAM_CENTER_LABEL, PARAM_COMPONENT_LIBRARY, PARAM_DIAGONAL_LABEL, PARAM_LINE_FLOW_MODE, PARAM_LINE_FULL_PATH, PARAM_LINE_PARALLEL_PATH, PARAM_MAP_BASEMAP, PARAM_MAP_MANUAL_REFRESH, PARAM_NAD_POSITIONS_GENERATION_MODE, PARAM_STATE_ESTIMATION, PARAM_SUBSTATION_LAYOUT, SUBSTATION_LAYOUT } from "./network-visualizations/constants.js";
25
+ import { CENTER_LABEL, COMPONENT_LIBRARY, DIAGONAL_LABEL, INTL_LINE_FLOW_MODE_OPTIONS, INTL_SUBSTATION_LAYOUT_OPTIONS, LINE_FLOW_MODE, LineFlowMode, MAP_BASE_MAP, MAP_MANUAL_REFRESH, MEASUREMENTS_LABEL, NAD_POSITIONS_GENERATION_MODE, NAD_POSITIONS_GENERATION_MODE_LABEL, NV_TAB_VALUES, NetworkVisualizationTabValues, OBSERVABILITY_LABEL, PARAM_CENTER_LABEL, PARAM_COMPONENT_LIBRARY, PARAM_DIAGONAL_LABEL, PARAM_LINE_FLOW_MODE, PARAM_LINE_FULL_PATH, PARAM_LINE_PARALLEL_PATH, PARAM_MAP_BASEMAP, PARAM_MAP_MANUAL_REFRESH, PARAM_MEASUREMENTS, PARAM_NAD_POSITIONS_GENERATION_MODE, PARAM_OBSERVABILITY, PARAM_SUBSTATION_LAYOUT, SUBSTATION_LAYOUT } from "./network-visualizations/constants.js";
26
26
  import { MAP_BASEMAP_CARTO, MAP_BASEMAP_CARTO_NOLABEL, MAP_BASEMAP_ETALAB, MAP_BASEMAP_MAPBOX, NadPositionsGenerationMode, SubstationLayout } from "./network-visualizations/network-visualizations.types.js";
27
27
  import { NetworkVisualizationParametersInline } from "./network-visualizations/network-visualizations-parameters-inline.js";
28
28
  import { NetworkVisualizationsParametersEditionDialog } from "./network-visualizations/network-visualizations-parameters-dialog.js";
@@ -72,7 +72,6 @@ export {
72
72
  CONTINGENCY_LISTS,
73
73
  CONTINGENCY_LISTS_INFOS,
74
74
  COUNTRIES_TO_BALANCE,
75
- CUSTOM_REAL_TIME_STATE_ESTIMATION,
76
75
  ContingencyTable,
77
76
  CreateParameterDialog,
78
77
  CustomVoltageLevelTable,
@@ -136,6 +135,7 @@ export {
136
135
  MAP_MANUAL_REFRESH,
137
136
  MARGIN_CALCULATION_START_TIME,
138
137
  MAX_VALUE_ALLOWED_FOR_LIMIT_REDUCTION,
138
+ MEASUREMENTS_LABEL,
139
139
  MIN_VALUE_ALLOWED_FOR_LIMIT_REDUCTION,
140
140
  MONITORED_BRANCHES_EQUIPMENT_TYPES,
141
141
  MONITORED_VOLTAGE_LEVELS_EQUIPMENT_TYPES,
@@ -148,6 +148,7 @@ export {
148
148
  NetworkVisualizationParametersInline,
149
149
  NetworkVisualizationTabValues,
150
150
  NetworkVisualizationsParametersEditionDialog,
151
+ OBSERVABILITY_LABEL,
151
152
  PARAM_CENTER_LABEL,
152
153
  PARAM_COMPONENT_LIBRARY,
153
154
  PARAM_DIAGONAL_LABEL,
@@ -157,9 +158,10 @@ export {
157
158
  PARAM_LINE_PARALLEL_PATH,
158
159
  PARAM_MAP_BASEMAP,
159
160
  PARAM_MAP_MANUAL_REFRESH,
161
+ PARAM_MEASUREMENTS,
160
162
  PARAM_NAD_POSITIONS_GENERATION_MODE,
163
+ PARAM_OBSERVABILITY,
161
164
  PARAM_PROVIDER_OPENLOADFLOW,
162
- PARAM_STATE_ESTIMATION,
163
165
  PARAM_SUBSTATION_LAYOUT,
164
166
  PHASE_SHIFTER_REGULATION_ON,
165
167
  PRIORITY,
@@ -14,7 +14,8 @@ export declare const PARAM_COMPONENT_LIBRARY = "componentLibrary";
14
14
  export declare const PARAM_DIAGONAL_LABEL = "diagonalLabel";
15
15
  export declare const PARAM_SUBSTATION_LAYOUT = "substationLayout";
16
16
  export declare const PARAM_NAD_POSITIONS_GENERATION_MODE = "nadPositionsGenerationMode";
17
- export declare const PARAM_STATE_ESTIMATION = "stateEstimation";
17
+ export declare const PARAM_MEASUREMENTS = "measurements";
18
+ export declare const PARAM_OBSERVABILITY = "observability";
18
19
  export declare enum NetworkVisualizationTabValues {
19
20
  MAP = "mapParameters",
20
21
  SINGLE_LINE_DIAGRAM = "singleLineDiagramParameters",
@@ -29,7 +30,8 @@ export declare const CENTER_LABEL = "centerLabel";
29
30
  export declare const SUBSTATION_LAYOUT = "SubstationLayout";
30
31
  export declare const COMPONENT_LIBRARY = "ComponentLibrary";
31
32
  export declare const NAD_POSITIONS_GENERATION_MODE_LABEL = "nadPositionsGenerationModeLabel";
32
- export declare const CUSTOM_REAL_TIME_STATE_ESTIMATION = "CustomRealTimeStateEstimation";
33
+ export declare const MEASUREMENTS_LABEL = "measurements";
34
+ export declare const OBSERVABILITY_LABEL = "observability";
33
35
  export declare const INTL_LINE_FLOW_MODE_OPTIONS: {
34
36
  id: LineFlowMode;
35
37
  label: string;
@@ -15,7 +15,8 @@ const PARAM_COMPONENT_LIBRARY = "componentLibrary";
15
15
  const PARAM_DIAGONAL_LABEL = "diagonalLabel";
16
16
  const PARAM_SUBSTATION_LAYOUT = "substationLayout";
17
17
  const PARAM_NAD_POSITIONS_GENERATION_MODE = "nadPositionsGenerationMode";
18
- const PARAM_STATE_ESTIMATION = "stateEstimation";
18
+ const PARAM_MEASUREMENTS = "measurements";
19
+ const PARAM_OBSERVABILITY = "observability";
19
20
  var NetworkVisualizationTabValues = /* @__PURE__ */ ((NetworkVisualizationTabValues2) => {
20
21
  NetworkVisualizationTabValues2["MAP"] = "mapParameters";
21
22
  NetworkVisualizationTabValues2["SINGLE_LINE_DIAGRAM"] = "singleLineDiagramParameters";
@@ -31,7 +32,8 @@ const CENTER_LABEL = "centerLabel";
31
32
  const SUBSTATION_LAYOUT = "SubstationLayout";
32
33
  const COMPONENT_LIBRARY = "ComponentLibrary";
33
34
  const NAD_POSITIONS_GENERATION_MODE_LABEL = "nadPositionsGenerationModeLabel";
34
- const CUSTOM_REAL_TIME_STATE_ESTIMATION = "CustomRealTimeStateEstimation";
35
+ const MEASUREMENTS_LABEL = "measurements";
36
+ const OBSERVABILITY_LABEL = "observability";
35
37
  const INTL_LINE_FLOW_MODE_OPTIONS = [
36
38
  {
37
39
  id: "staticArrows",
@@ -73,7 +75,6 @@ const NAD_POSITIONS_GENERATION_MODE = [
73
75
  export {
74
76
  CENTER_LABEL,
75
77
  COMPONENT_LIBRARY,
76
- CUSTOM_REAL_TIME_STATE_ESTIMATION,
77
78
  DIAGONAL_LABEL,
78
79
  INTL_LINE_FLOW_MODE_OPTIONS,
79
80
  INTL_SUBSTATION_LAYOUT_OPTIONS,
@@ -81,10 +82,12 @@ export {
81
82
  LineFlowMode,
82
83
  MAP_BASE_MAP,
83
84
  MAP_MANUAL_REFRESH,
85
+ MEASUREMENTS_LABEL,
84
86
  NAD_POSITIONS_GENERATION_MODE,
85
87
  NAD_POSITIONS_GENERATION_MODE_LABEL,
86
88
  NV_TAB_VALUES,
87
89
  NetworkVisualizationTabValues,
90
+ OBSERVABILITY_LABEL,
88
91
  PARAM_CENTER_LABEL,
89
92
  PARAM_COMPONENT_LIBRARY,
90
93
  PARAM_DIAGONAL_LABEL,
@@ -93,8 +96,9 @@ export {
93
96
  PARAM_LINE_PARALLEL_PATH,
94
97
  PARAM_MAP_BASEMAP,
95
98
  PARAM_MAP_MANUAL_REFRESH,
99
+ PARAM_MEASUREMENTS,
96
100
  PARAM_NAD_POSITIONS_GENERATION_MODE,
97
- PARAM_STATE_ESTIMATION,
101
+ PARAM_OBSERVABILITY,
98
102
  PARAM_SUBSTATION_LAYOUT,
99
103
  SUBSTATION_LAYOUT
100
104
  };
@@ -1,11 +1,10 @@
1
- import { CENTER_LABEL, COMPONENT_LIBRARY, CUSTOM_REAL_TIME_STATE_ESTIMATION, DIAGONAL_LABEL, INTL_LINE_FLOW_MODE_OPTIONS, INTL_SUBSTATION_LAYOUT_OPTIONS, LINE_FLOW_MODE, LineFlowMode, MAP_BASE_MAP, MAP_MANUAL_REFRESH, NAD_POSITIONS_GENERATION_MODE, NAD_POSITIONS_GENERATION_MODE_LABEL, NV_TAB_VALUES, NetworkVisualizationTabValues, PARAM_CENTER_LABEL, PARAM_COMPONENT_LIBRARY, PARAM_DIAGONAL_LABEL, PARAM_LINE_FLOW_MODE, PARAM_LINE_FULL_PATH, PARAM_LINE_PARALLEL_PATH, PARAM_MAP_BASEMAP, PARAM_MAP_MANUAL_REFRESH, PARAM_NAD_POSITIONS_GENERATION_MODE, PARAM_STATE_ESTIMATION, PARAM_SUBSTATION_LAYOUT, SUBSTATION_LAYOUT } from "./constants.js";
1
+ import { CENTER_LABEL, COMPONENT_LIBRARY, DIAGONAL_LABEL, INTL_LINE_FLOW_MODE_OPTIONS, INTL_SUBSTATION_LAYOUT_OPTIONS, LINE_FLOW_MODE, LineFlowMode, MAP_BASE_MAP, MAP_MANUAL_REFRESH, MEASUREMENTS_LABEL, NAD_POSITIONS_GENERATION_MODE, NAD_POSITIONS_GENERATION_MODE_LABEL, NV_TAB_VALUES, NetworkVisualizationTabValues, OBSERVABILITY_LABEL, PARAM_CENTER_LABEL, PARAM_COMPONENT_LIBRARY, PARAM_DIAGONAL_LABEL, PARAM_LINE_FLOW_MODE, PARAM_LINE_FULL_PATH, PARAM_LINE_PARALLEL_PATH, PARAM_MAP_BASEMAP, PARAM_MAP_MANUAL_REFRESH, PARAM_MEASUREMENTS, PARAM_NAD_POSITIONS_GENERATION_MODE, PARAM_OBSERVABILITY, PARAM_SUBSTATION_LAYOUT, SUBSTATION_LAYOUT } from "./constants.js";
2
2
  import { MAP_BASEMAP_CARTO, MAP_BASEMAP_CARTO_NOLABEL, MAP_BASEMAP_ETALAB, MAP_BASEMAP_MAPBOX, NadPositionsGenerationMode, SubstationLayout } from "./network-visualizations.types.js";
3
3
  import { NetworkVisualizationParametersInline } from "./network-visualizations-parameters-inline.js";
4
4
  import { NetworkVisualizationsParametersEditionDialog } from "./network-visualizations-parameters-dialog.js";
5
5
  export {
6
6
  CENTER_LABEL,
7
7
  COMPONENT_LIBRARY,
8
- CUSTOM_REAL_TIME_STATE_ESTIMATION,
9
8
  DIAGONAL_LABEL,
10
9
  INTL_LINE_FLOW_MODE_OPTIONS,
11
10
  INTL_SUBSTATION_LAYOUT_OPTIONS,
@@ -17,6 +16,7 @@ export {
17
16
  MAP_BASEMAP_MAPBOX,
18
17
  MAP_BASE_MAP,
19
18
  MAP_MANUAL_REFRESH,
19
+ MEASUREMENTS_LABEL,
20
20
  NAD_POSITIONS_GENERATION_MODE,
21
21
  NAD_POSITIONS_GENERATION_MODE_LABEL,
22
22
  NV_TAB_VALUES,
@@ -24,6 +24,7 @@ export {
24
24
  NetworkVisualizationParametersInline,
25
25
  NetworkVisualizationTabValues,
26
26
  NetworkVisualizationsParametersEditionDialog,
27
+ OBSERVABILITY_LABEL,
27
28
  PARAM_CENTER_LABEL,
28
29
  PARAM_COMPONENT_LIBRARY,
29
30
  PARAM_DIAGONAL_LABEL,
@@ -32,8 +33,9 @@ export {
32
33
  PARAM_LINE_PARALLEL_PATH,
33
34
  PARAM_MAP_BASEMAP,
34
35
  PARAM_MAP_MANUAL_REFRESH,
36
+ PARAM_MEASUREMENTS,
35
37
  PARAM_NAD_POSITIONS_GENERATION_MODE,
36
- PARAM_STATE_ESTIMATION,
38
+ PARAM_OBSERVABILITY,
37
39
  PARAM_SUBSTATION_LAYOUT,
38
40
  SUBSTATION_LAYOUT,
39
41
  SubstationLayout
@@ -27,7 +27,8 @@ type SingleLineDiagramParameters = {
27
27
  centerLabel: boolean;
28
28
  substationLayout: string;
29
29
  componentLibrary: string;
30
- stateEstimation: boolean;
30
+ measurements: boolean;
31
+ observability: boolean;
31
32
  };
32
33
  type NetworkAreaDiagramParameters = {
33
34
  nadPositionsGenerationMode: string;
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { Grid } from "@mui/material";
3
3
  import { useMemo } from "react";
4
4
  import { FormattedMessage } from "react-intl";
5
- import { INTL_SUBSTATION_LAYOUT_OPTIONS, SUBSTATION_LAYOUT, NetworkVisualizationTabValues, PARAM_SUBSTATION_LAYOUT, COMPONENT_LIBRARY, PARAM_COMPONENT_LIBRARY, DIAGONAL_LABEL, PARAM_DIAGONAL_LABEL, CENTER_LABEL, PARAM_CENTER_LABEL, CUSTOM_REAL_TIME_STATE_ESTIMATION, PARAM_STATE_ESTIMATION } from "./constants.js";
5
+ import { INTL_SUBSTATION_LAYOUT_OPTIONS, SUBSTATION_LAYOUT, NetworkVisualizationTabValues, PARAM_SUBSTATION_LAYOUT, COMPONENT_LIBRARY, PARAM_COMPONENT_LIBRARY, DIAGONAL_LABEL, PARAM_DIAGONAL_LABEL, CENTER_LABEL, PARAM_CENTER_LABEL, MEASUREMENTS_LABEL, PARAM_MEASUREMENTS, OBSERVABILITY_LABEL, PARAM_OBSERVABILITY } from "./constants.js";
6
6
  import "@mui/icons-material";
7
7
  import "../../../components/ui/overflowableText/OverflowableText.js";
8
8
  import "../../../utils/conversionUtils.js";
@@ -77,7 +77,8 @@ function SingleLineDiagramParameters({ componentLibraries }) {
77
77
  labelPosition(PARAM_CENTER_LABEL, CENTER_LABEL),
78
78
  substationLineDropDown,
79
79
  componentLineDropDown,
80
- labelPosition(PARAM_STATE_ESTIMATION, CUSTOM_REAL_TIME_STATE_ESTIMATION)
80
+ labelPosition(PARAM_MEASUREMENTS, MEASUREMENTS_LABEL),
81
+ labelPosition(PARAM_OBSERVABILITY, OBSERVABILITY_LABEL)
81
82
  ]
82
83
  },
83
84
  "singleLineDiagramParameters"
@@ -31,7 +31,7 @@ import "../../../components/ui/snackbarProvider/SnackbarProvider.js";
31
31
  import "../../../chunks/module.pXeJjFiM.js";
32
32
  import "react-resizable-panels";
33
33
  import "react-papaparse";
34
- import { NetworkVisualizationTabValues, PARAM_NAD_POSITIONS_GENERATION_MODE, PARAM_STATE_ESTIMATION, PARAM_COMPONENT_LIBRARY, PARAM_SUBSTATION_LAYOUT, PARAM_CENTER_LABEL, PARAM_DIAGONAL_LABEL, PARAM_MAP_BASEMAP, PARAM_MAP_MANUAL_REFRESH, PARAM_LINE_FLOW_MODE, PARAM_LINE_PARALLEL_PATH, PARAM_LINE_FULL_PATH, NV_TAB_VALUES } from "./constants.js";
34
+ import { NetworkVisualizationTabValues, PARAM_NAD_POSITIONS_GENERATION_MODE, PARAM_OBSERVABILITY, PARAM_MEASUREMENTS, PARAM_COMPONENT_LIBRARY, PARAM_SUBSTATION_LAYOUT, PARAM_CENTER_LABEL, PARAM_DIAGONAL_LABEL, PARAM_MAP_BASEMAP, PARAM_MAP_MANUAL_REFRESH, PARAM_LINE_FLOW_MODE, PARAM_LINE_PARALLEL_PATH, PARAM_LINE_FULL_PATH, NV_TAB_VALUES } from "./constants.js";
35
35
  const useNetworkVisualizationParametersForm = ({
36
36
  parametersUuid,
37
37
  name,
@@ -55,7 +55,8 @@ const useNetworkVisualizationParametersForm = ({
55
55
  [PARAM_CENTER_LABEL]: yup.boolean(),
56
56
  [PARAM_SUBSTATION_LAYOUT]: yup.string(),
57
57
  [PARAM_COMPONENT_LIBRARY]: yup.string(),
58
- [PARAM_STATE_ESTIMATION]: yup.boolean()
58
+ [PARAM_MEASUREMENTS]: yup.boolean(),
59
+ [PARAM_OBSERVABILITY]: yup.boolean()
59
60
  }),
60
61
  [NetworkVisualizationTabValues.NETWORK_AREA_DIAGRAM]: yup.object().shape({
61
62
  [PARAM_NAD_POSITIONS_GENERATION_MODE]: yup.string()
@@ -77,7 +78,8 @@ const useNetworkVisualizationParametersForm = ({
77
78
  [PARAM_CENTER_LABEL]: false,
78
79
  [PARAM_SUBSTATION_LAYOUT]: "",
79
80
  [PARAM_COMPONENT_LIBRARY]: "",
80
- [PARAM_STATE_ESTIMATION]: false
81
+ [PARAM_MEASUREMENTS]: false,
82
+ [PARAM_OBSERVABILITY]: false
81
83
  },
82
84
  [NetworkVisualizationTabValues.NETWORK_AREA_DIAGRAM]: {
83
85
  [PARAM_NAD_POSITIONS_GENERATION_MODE]: ""
@@ -2,19 +2,9 @@ import { jsx } from "react/jsx-runtime";
2
2
  import { Avatar } from "@mui/material";
3
3
  import "../../../../utils/conversionUtils.js";
4
4
  import "../../../../utils/types/equipmentType.js";
5
- import { isEmpty } from "../../../../utils/functions.js";
6
5
  import "@mui/icons-material";
7
6
  import { mergeSx } from "../../../../utils/styles.js";
8
- function getAbbreviationFromUserName(name) {
9
- if (isEmpty(name)) {
10
- return "";
11
- }
12
- const [firstName, ...otherNames] = name.split(" ");
13
- if (otherNames.length > 0) {
14
- return `${firstName[0]}${otherNames.at(-1)[0]}`;
15
- }
16
- return firstName[0];
17
- }
7
+ import { getAbbreviationFromUserName } from "../../../../utils/user-utils.js";
18
8
  function UserAvatarIcon({ label, sx }) {
19
9
  return /* @__PURE__ */ jsx(
20
10
  Avatar,
package/dist/index.js CHANGED
@@ -151,6 +151,7 @@ import { CustomMenu } from "./components/composite/customAGGrid/custom-aggrid-me
151
151
  import { CustomAggridSort } from "./components/composite/customAGGrid/custom-aggrid-sort.js";
152
152
  import { DisplayRounding } from "./components/composite/customAGGrid/display-rounding.js";
153
153
  import { makeAgGridCustomHeaderColumn } from "./components/composite/customAGGrid/utils/custom-aggrid-header-utils.js";
154
+ import { UserAvatar, UserAvatarWithLabel } from "./components/composite/customAGGrid/user-avatar.js";
154
155
  import { ReportViewer } from "./components/composite/report/report-viewer/report-viewer.js";
155
156
  import { ReportFetcherContext, ReportFilterContext, useReportFetcherContext, useReportFilterContext } from "./components/composite/report/report-viewer/context/report-viewer-context.js";
156
157
  import { default as default3 } from "./components/composite/report/report-viewer/log-table/log-table.js";
@@ -206,7 +207,7 @@ import { LimitReductionTableCell } from "./features/parameters/common/limitreduc
206
207
  import { ContingencyTable } from "./features/parameters/common/contingency-table/contingency-table.js";
207
208
  import { COLUMNS_DEFINITIONS_CONTINGENCY_LISTS_INFOS, getContingencyListsInfosFormSchema, isValidContingencyRow, toFormValuesContingencyListsInfos } from "./features/parameters/common/contingency-table/columns-definitions.js";
208
209
  import { useParametersForm } from "./features/parameters/common/hook/use-parameters-form.js";
209
- import { CENTER_LABEL, COMPONENT_LIBRARY, CUSTOM_REAL_TIME_STATE_ESTIMATION, DIAGONAL_LABEL, INTL_LINE_FLOW_MODE_OPTIONS, INTL_SUBSTATION_LAYOUT_OPTIONS, LINE_FLOW_MODE, LineFlowMode, MAP_BASE_MAP, MAP_MANUAL_REFRESH, NAD_POSITIONS_GENERATION_MODE, NAD_POSITIONS_GENERATION_MODE_LABEL, NV_TAB_VALUES, NetworkVisualizationTabValues, PARAM_CENTER_LABEL, PARAM_COMPONENT_LIBRARY, PARAM_DIAGONAL_LABEL, PARAM_LINE_FLOW_MODE, PARAM_LINE_FULL_PATH, PARAM_LINE_PARALLEL_PATH, PARAM_MAP_BASEMAP, PARAM_MAP_MANUAL_REFRESH, PARAM_NAD_POSITIONS_GENERATION_MODE, PARAM_STATE_ESTIMATION, PARAM_SUBSTATION_LAYOUT, SUBSTATION_LAYOUT } from "./features/parameters/network-visualizations/constants.js";
210
+ import { CENTER_LABEL, COMPONENT_LIBRARY, DIAGONAL_LABEL, INTL_LINE_FLOW_MODE_OPTIONS, INTL_SUBSTATION_LAYOUT_OPTIONS, LINE_FLOW_MODE, LineFlowMode, MAP_BASE_MAP, MAP_MANUAL_REFRESH, MEASUREMENTS_LABEL, NAD_POSITIONS_GENERATION_MODE, NAD_POSITIONS_GENERATION_MODE_LABEL, NV_TAB_VALUES, NetworkVisualizationTabValues, OBSERVABILITY_LABEL, PARAM_CENTER_LABEL, PARAM_COMPONENT_LIBRARY, PARAM_DIAGONAL_LABEL, PARAM_LINE_FLOW_MODE, PARAM_LINE_FULL_PATH, PARAM_LINE_PARALLEL_PATH, PARAM_MAP_BASEMAP, PARAM_MAP_MANUAL_REFRESH, PARAM_MEASUREMENTS, PARAM_NAD_POSITIONS_GENERATION_MODE, PARAM_OBSERVABILITY, PARAM_SUBSTATION_LAYOUT, SUBSTATION_LAYOUT } from "./features/parameters/network-visualizations/constants.js";
210
211
  import { MAP_BASEMAP_CARTO, MAP_BASEMAP_CARTO_NOLABEL, MAP_BASEMAP_ETALAB, MAP_BASEMAP_MAPBOX, NadPositionsGenerationMode, SubstationLayout } from "./features/parameters/network-visualizations/network-visualizations.types.js";
211
212
  import { NetworkVisualizationParametersInline } from "./features/parameters/network-visualizations/network-visualizations-parameters-inline.js";
212
213
  import { NetworkVisualizationsParametersEditionDialog } from "./features/parameters/network-visualizations/network-visualizations-parameters-dialog.js";
@@ -701,7 +702,6 @@ export {
701
702
  CREATE_SUBSTATION_IN_VOLTAGE_LEVEL_IDENTICAL_ID,
702
703
  CURRENT_CONNECTION_STATUS,
703
704
  CUSTOM_AGGRID_THEME,
704
- CUSTOM_REAL_TIME_STATE_ESTIMATION,
705
705
  CalculationType,
706
706
  CancelButton,
707
707
  CardErrorBoundary,
@@ -994,6 +994,7 @@ export {
994
994
  MAX_ROWS_NUMBER,
995
995
  MAX_SECTIONS_COUNT,
996
996
  MAX_VALUE_ALLOWED_FOR_LIMIT_REDUCTION,
997
+ MEASUREMENTS_LABEL,
997
998
  MEGA_VAR,
998
999
  MEGA_VOLT_AMPERE,
999
1000
  MEGA_WATT,
@@ -1053,6 +1054,7 @@ export {
1053
1054
  NotificationsUrlKeys,
1054
1055
  NumericCellRenderer,
1055
1056
  NumericEditor,
1057
+ OBSERVABILITY_LABEL,
1056
1058
  OHM,
1057
1059
  ONE_BUS,
1058
1060
  OPERATIONAL_LIMITS_GROUPS_MODIFICATION_TYPE,
@@ -1081,9 +1083,10 @@ export {
1081
1083
  PARAM_LINE_PARALLEL_PATH,
1082
1084
  PARAM_MAP_BASEMAP,
1083
1085
  PARAM_MAP_MANUAL_REFRESH,
1086
+ PARAM_MEASUREMENTS,
1084
1087
  PARAM_NAD_POSITIONS_GENERATION_MODE,
1088
+ PARAM_OBSERVABILITY,
1085
1089
  PARAM_PROVIDER_OPENLOADFLOW,
1086
- PARAM_STATE_ESTIMATION,
1087
1090
  PARAM_SUBSTATION_LAYOUT,
1088
1091
  PARAM_THEME,
1089
1092
  PERCENTAGE,
@@ -1332,6 +1335,8 @@ export {
1332
1335
  UnauthorizedAccessAlert,
1333
1336
  UndisplayedFilterNumberComparators,
1334
1337
  UniqueNameInput,
1338
+ UserAvatar,
1339
+ UserAvatarWithLabel,
1335
1340
  default5 as UserInformationDialog,
1336
1341
  UserManagerMock,
1337
1342
  default6 as UserSettingsDialog,
@@ -89,7 +89,8 @@ export declare const parametersEn: {
89
89
  HorizontalSubstationLayout: string;
90
90
  VerticalSubstationLayout: string;
91
91
  ComponentLibrary: string;
92
- CustomRealTimeStateEstimation: string;
92
+ measurements: string;
93
+ observability: string;
93
94
  nadPositionsGenerationModeLabel: string;
94
95
  NadGeoPositionsModeLabel: string;
95
96
  NadAutoPositionsModeLabel: string;
@@ -83,7 +83,8 @@ const parametersEn = {
83
83
  HorizontalSubstationLayout: "Horizontal",
84
84
  VerticalSubstationLayout: "Vertical",
85
85
  ComponentLibrary: "Component library selection",
86
- CustomRealTimeStateEstimation: "State estimation",
86
+ measurements: "Measurements",
87
+ observability: "Observability",
87
88
  nadPositionsGenerationModeLabel: "Initialization of the positions",
88
89
  NadGeoPositionsModeLabel: "Geographical",
89
90
  NadAutoPositionsModeLabel: "Automatic",
@@ -89,7 +89,8 @@ export declare const parametersFr: {
89
89
  HorizontalSubstationLayout: string;
90
90
  VerticalSubstationLayout: string;
91
91
  ComponentLibrary: string;
92
- CustomRealTimeStateEstimation: string;
92
+ measurements: string;
93
+ observability: string;
93
94
  nadPositionsGenerationModeLabel: string;
94
95
  NadGeoPositionsModeLabel: string;
95
96
  NadAutoPositionsModeLabel: string;
@@ -83,7 +83,8 @@ const parametersFr = {
83
83
  HorizontalSubstationLayout: "Horizontal",
84
84
  VerticalSubstationLayout: "Vertical",
85
85
  ComponentLibrary: "Sélection de la bibliothèque de composants",
86
- CustomRealTimeStateEstimation: "Estimation d'état",
86
+ measurements: "Télémesures",
87
+ observability: "Observabilité",
87
88
  nadPositionsGenerationModeLabel: "Initialisation des positions",
88
89
  NadGeoPositionsModeLabel: "Géographique",
89
90
  NadAutoPositionsModeLabel: "Automatique",
@@ -36,3 +36,4 @@ export declare const STATEESTIMATION_RESULT = "stateEstimationResult";
36
36
  export declare const PCCMIN_ANALYSIS_RESULT_SORT_STORE = "pccminAnalysisResult";
37
37
  export declare const PCCMIN_ANALYSIS_PAGINATION_STORE_FIELD = "pccminAnalysisPagination";
38
38
  export declare const PCCMIN_RESULT = "pccMinResults";
39
+ export declare const PROCESS_EXECUTION_HISTORY_SORT_STORE = "processExecutionHistory";
@@ -30,6 +30,7 @@ const STATEESTIMATION_RESULT = "stateEstimationResult";
30
30
  const PCCMIN_ANALYSIS_RESULT_SORT_STORE = "pccminAnalysisResult";
31
31
  const PCCMIN_ANALYSIS_PAGINATION_STORE_FIELD = "pccminAnalysisPagination";
32
32
  const PCCMIN_RESULT = "pccMinResults";
33
+ const PROCESS_EXECUTION_HISTORY_SORT_STORE = "processExecutionHistory";
33
34
  export {
34
35
  ALL_BUSES,
35
36
  DYNAMIC_SIMULATION_RESULT_SORT_STORE,
@@ -42,6 +43,7 @@ export {
42
43
  PCCMIN_ANALYSIS_PAGINATION_STORE_FIELD,
43
44
  PCCMIN_ANALYSIS_RESULT_SORT_STORE,
44
45
  PCCMIN_RESULT,
46
+ PROCESS_EXECUTION_HISTORY_SORT_STORE,
45
47
  SECURITY_ANALYSIS_PAGINATION_STORE_FIELD,
46
48
  SECURITY_ANALYSIS_RESULT_N,
47
49
  SECURITY_ANALYSIS_RESULT_N_K,
@@ -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 declare function getAbbreviationFromUserName(name: string): string;
@@ -0,0 +1,14 @@
1
+ import { isEmpty } from "@mui/material";
2
+ function getAbbreviationFromUserName(name) {
3
+ if (isEmpty(name)) {
4
+ return "";
5
+ }
6
+ const [firstName, ...otherNames] = name.split(" ");
7
+ if (otherNames.length > 0) {
8
+ return `${firstName[0]}${otherNames.at(-1)[0]}`;
9
+ }
10
+ return firstName[0];
11
+ }
12
+ export {
13
+ getAbbreviationFromUserName
14
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsuite/commons-ui",
3
- "version": "0.289.0",
3
+ "version": "0.291.0",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "author": "gridsuite team",
6
6
  "homepage": "https://github.com/gridsuite",