@gridsuite/commons-ui 0.44.0 → 0.46.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.
@@ -7,14 +7,18 @@
7
7
  import React from 'react';
8
8
  import LibraryBooksOutlinedIcon from '@mui/icons-material/LibraryBooksOutlined';
9
9
  import OfflineBoltIcon from '@mui/icons-material/OfflineBolt';
10
+ import NoteAltIcon from '@mui/icons-material/NoteAlt';
10
11
  import ArticleIcon from '@mui/icons-material/Article';
11
12
  import SettingsIcon from '@mui/icons-material/Settings';
12
13
  export var elementType = {
13
14
  DIRECTORY: 'DIRECTORY',
14
15
  STUDY: 'STUDY',
15
16
  FILTER: 'FILTER',
17
+ MODIFICATION: 'MODIFICATION',
16
18
  CONTINGENCY_LIST: 'CONTINGENCY_LIST',
17
- VOLTAGE_INIT_PARAMETERS: 'VOLTAGE_INIT_PARAMETERS'
19
+ VOLTAGE_INIT_PARAMETERS: 'VOLTAGE_INIT_PARAMETERS',
20
+ SECURITY_ANALYSIS_PARAMETERS: 'SECURITY_ANALYSIS_PARAMETERS',
21
+ LOADFLOW_PARAMETERS: 'LOADFLOW_PARAMETERS'
18
22
  };
19
23
  export function getFileIcon(type, style) {
20
24
  switch (type) {
@@ -26,11 +30,17 @@ export function getFileIcon(type, style) {
26
30
  return /*#__PURE__*/React.createElement(OfflineBoltIcon, {
27
31
  sx: style
28
32
  });
33
+ case elementType.MODIFICATION:
34
+ return /*#__PURE__*/React.createElement(NoteAltIcon, {
35
+ sx: style
36
+ });
29
37
  case elementType.FILTER:
30
38
  return /*#__PURE__*/React.createElement(ArticleIcon, {
31
39
  sx: style
32
40
  });
33
41
  case elementType.VOLTAGE_INIT_PARAMETERS:
42
+ case elementType.SECURITY_ANALYSIS_PARAMETERS:
43
+ case elementType.LOADFLOW_PARAMETERS:
34
44
  return /*#__PURE__*/React.createElement(SettingsIcon, {
35
45
  sx: style
36
46
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsuite/commons-ui",
3
- "version": "0.44.0",
3
+ "version": "0.46.0",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "engines": {
6
6
  "npm": ">=9",