@gridsuite/commons-ui 0.58.0 → 0.59.1

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 (190) hide show
  1. package/dist/chunks/{criteria-based-filter-edition-dialog.CbhgOSRk.js → criteria-based-filter-edition-dialog.DcXcQOoT.js} +21 -65
  2. package/dist/components/AuthenticationRouter/AuthenticationRouter.d.ts +28 -9
  3. package/dist/components/AuthenticationRouter/AuthenticationRouter.js +1 -1
  4. package/dist/components/AuthenticationRouter/index.d.ts +6 -0
  5. package/dist/components/CardErrorBoundary/card-error-boundary.d.ts +27 -13
  6. package/dist/components/CardErrorBoundary/card-error-boundary.js +7 -6
  7. package/dist/components/CardErrorBoundary/index.d.ts +6 -0
  8. package/dist/components/CustomAGGrid/custom-aggrid.d.ts +11 -0
  9. package/dist/components/CustomAGGrid/custom-aggrid.js +73 -0
  10. package/dist/components/CustomAGGrid/custom-aggrid.style.d.ts +20 -0
  11. package/dist/components/CustomAGGrid/custom-aggrid.style.js +47 -0
  12. package/dist/components/DirectoryItemSelector/directory-item-selector.d.ts +0 -4
  13. package/dist/components/DirectoryItemSelector/directory-item-selector.js +13 -26
  14. package/dist/components/ElementSearchDialog/equipment-item.d.ts +25 -16
  15. package/dist/components/ElementSearchDialog/equipment-item.js +5 -5
  16. package/dist/components/ElementSearchDialog/index.d.ts +6 -0
  17. package/dist/components/ElementSearchDialog/tag-renderer.d.ts +20 -10
  18. package/dist/components/ElementSearchDialog/tag-renderer.js +6 -11
  19. package/dist/components/FlatParameters/FlatParameters.d.ts +29 -9
  20. package/dist/components/FlatParameters/FlatParameters.js +3 -3
  21. package/dist/components/FlatParameters/index.d.ts +6 -0
  22. package/dist/components/Login/Login.d.ts +11 -4
  23. package/dist/components/Login/Logout.d.ts +11 -4
  24. package/dist/components/Login/index.d.ts +6 -0
  25. package/dist/components/MuiVirtualizedTable/ColumnHeader.d.ts +25 -2
  26. package/dist/components/MuiVirtualizedTable/ColumnHeader.js +68 -59
  27. package/dist/components/MuiVirtualizedTable/KeyedColumnsRowIndexer.d.ts +72 -61
  28. package/dist/components/MuiVirtualizedTable/KeyedColumnsRowIndexer.js +69 -83
  29. package/dist/components/MuiVirtualizedTable/MuiVirtualizedTable.d.ts +93 -113
  30. package/dist/components/MuiVirtualizedTable/MuiVirtualizedTable.js +84 -106
  31. package/dist/components/MuiVirtualizedTable/index.d.ts +7 -1
  32. package/dist/components/MultipleSelectionDialog/MultipleSelectionDialog.d.ts +16 -9
  33. package/dist/components/MultipleSelectionDialog/MultipleSelectionDialog.js +1 -1
  34. package/dist/components/MultipleSelectionDialog/index.d.ts +6 -0
  35. package/dist/components/OverflowableText/index.d.ts +6 -0
  36. package/dist/components/OverflowableText/overflowable-text.d.ts +11 -1
  37. package/dist/components/OverflowableText/overflowable-text.js +1 -18
  38. package/dist/components/ReportViewer/filter-button.d.ts +11 -1
  39. package/dist/components/ReportViewer/filter-button.js +5 -2
  40. package/dist/components/ReportViewer/index.d.ts +6 -0
  41. package/dist/components/ReportViewer/log-report-item.d.ts +14 -64
  42. package/dist/components/ReportViewer/log-report-item.js +13 -47
  43. package/dist/components/ReportViewer/log-report.d.ts +16 -17
  44. package/dist/components/ReportViewer/log-report.js +2 -1
  45. package/dist/components/ReportViewer/log-severity.d.ts +13 -0
  46. package/dist/components/ReportViewer/log-severity.js +35 -0
  47. package/dist/components/ReportViewer/log-table.d.ts +9 -6
  48. package/dist/components/ReportViewer/log-table.js +6 -4
  49. package/dist/components/ReportViewer/multi-select-list.d.ts +17 -1
  50. package/dist/components/ReportViewer/report-item.d.ts +12 -12
  51. package/dist/components/ReportViewer/report-item.js +0 -7
  52. package/dist/components/ReportViewer/report-tree-view-context.d.ts +11 -1
  53. package/dist/components/ReportViewer/report-viewer.d.ts +7 -4
  54. package/dist/components/ReportViewer/report-viewer.js +8 -6
  55. package/dist/components/ReportViewer/report.type.d.ts +22 -0
  56. package/dist/components/ReportViewer/report.type.js +1 -0
  57. package/dist/components/ReportViewerDialog/index.d.ts +6 -0
  58. package/dist/components/ReportViewerDialog/report-viewer-dialog.d.ts +9 -1
  59. package/dist/components/SignInCallbackHandler/SignInCallbackHandler.d.ts +7 -4
  60. package/dist/components/SignInCallbackHandler/SignInCallbackHandler.js +4 -1
  61. package/dist/components/SignInCallbackHandler/index.d.ts +6 -0
  62. package/dist/components/SilentRenewCallbackHandler/SilentRenewCallbackHandler.d.ts +7 -4
  63. package/dist/components/SilentRenewCallbackHandler/index.d.ts +6 -0
  64. package/dist/components/SnackbarProvider/SnackbarProvider.d.ts +3 -1
  65. package/dist/components/SnackbarProvider/SnackbarProvider.js +9 -7
  66. package/dist/components/SnackbarProvider/index.d.ts +6 -0
  67. package/dist/components/TopBar/AboutDialog.d.ts +30 -23
  68. package/dist/components/TopBar/AboutDialog.js +4 -22
  69. package/dist/components/TopBar/GridLogo.d.ts +13 -32
  70. package/dist/components/TopBar/GridLogo.js +12 -15
  71. package/dist/components/TopBar/TopBar.d.ts +52 -51
  72. package/dist/components/TopBar/TopBar.js +389 -380
  73. package/dist/components/TopBar/TopBar.test.d.ts +6 -0
  74. package/dist/components/TopBar/index.d.ts +6 -0
  75. package/dist/components/dialogs/modify-element-selection.d.ts +1 -1
  76. package/dist/components/dialogs/modify-element-selection.js +5 -14
  77. package/dist/components/filter/criteria-based/criteria-based-filter-edition-dialog.d.ts +1 -1
  78. package/dist/components/filter/criteria-based/criteria-based-filter-edition-dialog.js +1 -1
  79. package/dist/components/filter/criteria-based/filter-free-properties.d.ts +1 -1
  80. package/dist/components/filter/criteria-based/filter-property.d.ts +1 -1
  81. package/dist/components/filter/expert/expert-filter-constants.d.ts +22 -1
  82. package/dist/components/filter/expert/expert-filter-constants.js +39 -10
  83. package/dist/components/filter/expert/expert-filter-edition-dialog.d.ts +0 -6
  84. package/dist/components/filter/expert/expert-filter-edition-dialog.js +1 -2
  85. package/dist/components/filter/expert/expert-filter-form.js +1 -1
  86. package/dist/components/filter/expert/expert-filter.type.d.ts +4 -1
  87. package/dist/components/filter/expert/expert-filter.type.js +3 -0
  88. package/dist/components/filter/explicit-naming/explicit-naming-filter-edition-dialog.js +1 -1
  89. package/dist/components/filter/explicit-naming/explicit-naming-filter-form.js +1 -1
  90. package/dist/components/filter/filter-creation-dialog.d.ts +0 -7
  91. package/dist/components/filter/filter-creation-dialog.js +1 -2
  92. package/dist/components/filter/filter-form.js +1 -1
  93. package/dist/components/filter/utils/filter-form-utils.d.ts +3 -2
  94. package/dist/components/filter/utils/filter-form-utils.js +42 -28
  95. package/dist/components/inputs/react-hook-form/ag-grid-table/bottom-right-buttons.js +1 -1
  96. package/dist/components/inputs/react-hook-form/ag-grid-table/csv-uploader/csv-uploader.js +6 -13
  97. package/dist/components/inputs/react-hook-form/ag-grid-table/custom-ag-grid-table.js +1 -1
  98. package/dist/components/inputs/react-hook-form/autocomplete-inputs/autocomplete-input.d.ts +1 -1
  99. package/dist/components/inputs/react-hook-form/booleans/boolean-input.d.ts +9 -15
  100. package/dist/components/inputs/react-hook-form/booleans/boolean-input.js +0 -7
  101. package/dist/components/inputs/react-hook-form/booleans/checkbox-input.d.ts +8 -13
  102. package/dist/components/inputs/react-hook-form/booleans/checkbox-input.js +0 -6
  103. package/dist/components/inputs/react-hook-form/booleans/switch-input.d.ts +8 -13
  104. package/dist/components/inputs/react-hook-form/booleans/switch-input.js +0 -6
  105. package/dist/components/inputs/react-hook-form/directory-items-input.d.ts +0 -2
  106. package/dist/components/inputs/react-hook-form/directory-items-input.js +10 -14
  107. package/dist/components/inputs/react-hook-form/error-management/mid-form-error.d.ts +5 -3
  108. package/dist/components/inputs/react-hook-form/numbers/integer-input.d.ts +3 -20
  109. package/dist/components/inputs/react-hook-form/numbers/integer-input.js +1 -4
  110. package/dist/components/inputs/react-hook-form/range-input.d.ts +1 -1
  111. package/dist/components/inputs/react-hook-form/select-inputs/countries-input.js +12 -1
  112. package/dist/components/inputs/react-hook-form/select-inputs/select-input.d.ts +1 -1
  113. package/dist/components/inputs/react-hook-form/slider-input.d.ts +7 -20
  114. package/dist/components/inputs/react-hook-form/slider-input.js +4 -12
  115. package/dist/components/inputs/react-hook-form/text-input.d.ts +1 -1
  116. package/dist/components/inputs/react-hook-form/unique-name-input.d.ts +1 -1
  117. package/dist/components/inputs/react-hook-form/utils/text-field-with-adornment.d.ts +1 -1
  118. package/dist/components/inputs/react-query-builder/custom-react-query-builder.js +1 -1
  119. package/dist/components/inputs/react-query-builder/element-value-editor.js +8 -14
  120. package/dist/components/inputs/react-query-builder/remove-button.js +1 -1
  121. package/dist/components/inputs/react-query-builder/value-editor.js +1 -1
  122. package/dist/components/translations/card-error-boundary-en.d.ts +1 -1
  123. package/dist/components/translations/card-error-boundary-fr.d.ts +1 -1
  124. package/dist/components/translations/common-button-en.d.ts +10 -4
  125. package/dist/components/translations/common-button-fr.d.ts +10 -4
  126. package/dist/components/translations/directory-items-input-en.d.ts +1 -1
  127. package/dist/components/translations/directory-items-input-fr.d.ts +1 -1
  128. package/dist/components/translations/element-search-en.d.ts +1 -1
  129. package/dist/components/translations/element-search-fr.d.ts +1 -1
  130. package/dist/components/translations/equipment-search-en.d.ts +1 -1
  131. package/dist/components/translations/equipment-search-fr.d.ts +1 -1
  132. package/dist/components/translations/filter-en.d.ts +27 -21
  133. package/dist/components/translations/filter-en.js +2 -1
  134. package/dist/components/translations/filter-expert-en.d.ts +73 -0
  135. package/dist/components/translations/filter-expert-en.js +69 -0
  136. package/dist/components/translations/filter-expert-fr.d.ts +73 -0
  137. package/dist/components/translations/filter-expert-fr.js +69 -0
  138. package/dist/components/translations/filter-fr.d.ts +27 -21
  139. package/dist/components/translations/filter-fr.js +2 -1
  140. package/dist/components/translations/flat-parameters-en.d.ts +1 -1
  141. package/dist/components/translations/flat-parameters-fr.d.ts +1 -1
  142. package/dist/components/translations/inputs-en.d.ts +1 -1
  143. package/dist/components/translations/inputs-fr.d.ts +1 -1
  144. package/dist/components/translations/login-en.d.ts +1 -1
  145. package/dist/components/translations/login-fr.d.ts +1 -1
  146. package/dist/components/translations/multiple-selection-dialog-en.d.ts +1 -1
  147. package/dist/components/translations/multiple-selection-dialog-fr.d.ts +1 -1
  148. package/dist/components/translations/report-viewer-en.d.ts +1 -1
  149. package/dist/components/translations/report-viewer-fr.d.ts +1 -1
  150. package/dist/components/translations/table-en.d.ts +1 -1
  151. package/dist/components/translations/table-fr.d.ts +1 -1
  152. package/dist/components/translations/top-bar-en.d.ts +1 -1
  153. package/dist/components/translations/top-bar-fr.d.ts +1 -1
  154. package/dist/components/translations/treeview-finder-en.d.ts +1 -1
  155. package/dist/components/translations/treeview-finder-fr.d.ts +1 -1
  156. package/dist/hooks/localized-countries-hook.d.ts +10 -4
  157. package/dist/hooks/localized-countries-hook.js +1 -1
  158. package/dist/hooks/predefined-properties-hook.d.ts +1 -15
  159. package/dist/hooks/predefined-properties-hook.js +8 -16
  160. package/dist/index.d.ts +65 -217
  161. package/dist/index.js +104 -77
  162. package/dist/module-mui.d.js +1 -0
  163. package/dist/redux/actions.d.ts +33 -29
  164. package/dist/services/apps-metadata.d.ts +32 -0
  165. package/dist/services/apps-metadata.js +26 -0
  166. package/dist/services/directory.d.ts +6 -0
  167. package/dist/services/directory.js +42 -0
  168. package/dist/services/explore.d.ts +2 -0
  169. package/dist/services/explore.js +29 -1
  170. package/dist/services/index.d.ts +16 -0
  171. package/dist/services/index.js +20 -0
  172. package/dist/services/utils.d.ts +1 -0
  173. package/dist/services/utils.js +5 -1
  174. package/dist/utils/AuthService.d.ts +20 -9
  175. package/dist/utils/AuthService.js +29 -13
  176. package/dist/utils/ElementIcon.d.ts +4 -1
  177. package/dist/utils/EquipmentType.d.ts +13 -9
  178. package/dist/utils/EquipmentType.js +9 -9
  179. package/dist/utils/UserManagerMock.d.ts +14 -14
  180. package/dist/utils/UserManagerMock.js +9 -15
  181. package/dist/utils/algos.d.ts +1 -1
  182. package/dist/utils/equipment-types-for-predefined-properties-mapper.d.ts +1 -1
  183. package/dist/utils/functions.d.ts +0 -1
  184. package/dist/utils/functions.js +1 -3
  185. package/dist/utils/styles.d.ts +5 -3
  186. package/dist/utils/styles.js +4 -1
  187. package/dist/utils/types.d.ts +13 -3
  188. package/package.json +2 -1
  189. package/dist/components/filter/filter-context.d.ts +0 -13
  190. package/dist/components/filter/filter-context.js +0 -11
@@ -1 +1,7 @@
1
+ /**
2
+ * Copyright (c) 2022, 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
+ */
1
7
  export {};
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Copyright (c) 2020, 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
+ */
1
7
  export { default } from './TopBar';
2
8
  export * from './GridLogo';
3
9
  export { default as AboutDialog } from './AboutDialog';
@@ -1,4 +1,4 @@
1
- import { ElementType } from '../../utils/ElementType.ts';
1
+ import { ElementType } from '../../utils/ElementType';
2
2
  import { UUID } from 'crypto';
3
3
  import { default as React } from 'react';
4
4
 
@@ -1,22 +1,16 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { useState, useContext, useEffect } from "react";
2
+ import { useState, useEffect } from "react";
3
3
  import { Grid, Button, Typography } from "@mui/material";
4
4
  import { useIntl, FormattedMessage } from "react-intl";
5
5
  import { useController } from "react-hook-form";
6
- import { FilterContext } from "../filter/filter-context.js";
7
6
  import { FieldConstants } from "../../utils/field-constants.js";
8
7
  import DirectoryItemSelector from "../DirectoryItemSelector/directory-item-selector.js";
9
8
  import { ElementType } from "../../utils/ElementType.js";
9
+ import { fetchDirectoryElementPath } from "../../services/directory.js";
10
10
  const ModifyElementSelection = (props) => {
11
11
  const intl = useIntl();
12
12
  const [open, setOpen] = useState(false);
13
13
  const [activeDirectoryName, setActiveDirectoryName] = useState("");
14
- const {
15
- fetchDirectoryContent,
16
- fetchRootFolders,
17
- fetchElementsInfos,
18
- fetchPath
19
- } = useContext(FilterContext);
20
14
  const {
21
15
  field: { onChange, value: directory }
22
16
  } = useController({
@@ -24,13 +18,13 @@ const ModifyElementSelection = (props) => {
24
18
  });
25
19
  useEffect(() => {
26
20
  if (directory) {
27
- fetchPath && fetchPath(directory).then((res) => {
21
+ fetchDirectoryElementPath(directory).then((res) => {
28
22
  setActiveDirectoryName(
29
23
  res.map((element) => element.elementName.trim()).reverse().join("/")
30
24
  );
31
25
  });
32
26
  }
33
- }, [directory, fetchPath]);
27
+ }, [directory]);
34
28
  const handleSelectFolder = () => {
35
29
  setOpen(true);
36
30
  };
@@ -93,10 +87,7 @@ const ModifyElementSelection = (props) => {
93
87
  }),
94
88
  contentText: intl.formatMessage({
95
89
  id: props.dialogMessageLabel
96
- }),
97
- fetchDirectoryContent,
98
- fetchRootFolders,
99
- fetchElementsInfos
90
+ })
100
91
  }
101
92
  )
102
93
  ]
@@ -1,4 +1,4 @@
1
- import { ElementType } from '../../../utils/ElementType.ts';
1
+ import { ElementType } from '../../../utils/ElementType';
2
2
  import { UUID } from 'crypto';
3
3
  import { Dispatch, FunctionComponent, SetStateAction } from 'react';
4
4
 
@@ -8,7 +8,7 @@ import "react-hook-form";
8
8
  import "@hookform/resolvers/yup";
9
9
  import "./criteria-based-filter-form.js";
10
10
  import "../../../utils/yup-config.js";
11
- import { b, p } from "../../../chunks/criteria-based-filter-edition-dialog.CbhgOSRk.js";
11
+ import { b, p } from "../../../chunks/criteria-based-filter-edition-dialog.DcXcQOoT.js";
12
12
  import "../constants/filter-constants.js";
13
13
  import "../../../utils/FetchStatus.js";
14
14
  import "../../../services/explore.js";
@@ -1,4 +1,4 @@
1
- import { PredefinedProperties } from '../../../utils/types.ts';
1
+ import { PredefinedProperties } from '../../../utils/types';
2
2
  import { FunctionComponent } from 'react';
3
3
  import { FreePropertiesTypes } from './filter-properties';
4
4
 
@@ -1,4 +1,4 @@
1
- import { PredefinedProperties } from '../../../utils/types.ts';
1
+ import { PredefinedProperties } from '../../../utils/types';
2
2
  import { FunctionComponent } from 'react';
3
3
 
4
4
  export declare const PROPERTY_NAME = "name_property";
@@ -1,5 +1,5 @@
1
1
  import { Field } from 'react-querybuilder';
2
- import { CombinatorType, DataType, FieldType, OperatorType } from '../expert/expert-filter.type.ts';
2
+ import { CombinatorType, DataType, FieldType, OperatorType } from './expert-filter.type';
3
3
 
4
4
  export declare enum RULES {
5
5
  EMPTY_RULE = "emptyRule",
@@ -547,5 +547,26 @@ export declare const FIELDS_OPTIONS: {
547
547
  valueEditorType: string;
548
548
  defaultValue: string;
549
549
  };
550
+ VOLTAGE_LEVEL_PROPERTY: {
551
+ name: FieldType;
552
+ label: string;
553
+ dataType: DataType;
554
+ valueEditorType: string;
555
+ defaultValue: string;
556
+ };
557
+ VOLTAGE_LEVEL_PROPERTY_1: {
558
+ name: FieldType;
559
+ label: string;
560
+ dataType: DataType;
561
+ valueEditorType: string;
562
+ defaultValue: string;
563
+ };
564
+ VOLTAGE_LEVEL_PROPERTY_2: {
565
+ name: FieldType;
566
+ label: string;
567
+ dataType: DataType;
568
+ valueEditorType: string;
569
+ defaultValue: string;
570
+ };
550
571
  };
551
572
  export declare const fields: Record<string, Field[]>;
@@ -340,25 +340,25 @@ const FIELDS_OPTIONS = {
340
340
  },
341
341
  NOMINAL_VOLTAGE_1: {
342
342
  name: FieldType.NOMINAL_VOLTAGE_1,
343
- label: "nominalVoltage1Or",
343
+ label: "nominalVoltage1KV",
344
344
  dataType: DataType.NUMBER,
345
345
  inputType: "number"
346
346
  },
347
347
  NOMINAL_VOLTAGE_2: {
348
348
  name: FieldType.NOMINAL_VOLTAGE_2,
349
- label: "nominalVoltage2Ex",
349
+ label: "nominalVoltage2KV",
350
350
  dataType: DataType.NUMBER,
351
351
  inputType: "number"
352
352
  },
353
353
  RATED_VOLTAGE_1: {
354
354
  name: FieldType.RATED_VOLTAGE_1,
355
- label: "ratedVoltage1Or",
355
+ label: "ratedVoltage1KV",
356
356
  dataType: DataType.NUMBER,
357
357
  inputType: "number"
358
358
  },
359
359
  RATED_VOLTAGE_2: {
360
360
  name: FieldType.RATED_VOLTAGE_2,
361
- label: "ratedVoltage2Ex",
361
+ label: "ratedVoltage2KV",
362
362
  dataType: DataType.NUMBER,
363
363
  inputType: "number"
364
364
  },
@@ -517,6 +517,27 @@ const FIELDS_OPTIONS = {
517
517
  dataType: DataType.PROPERTY,
518
518
  valueEditorType: "select",
519
519
  defaultValue: ""
520
+ },
521
+ VOLTAGE_LEVEL_PROPERTY: {
522
+ name: FieldType.VOLTAGE_LEVEL_PROPERTY,
523
+ label: "voltageLevelProperty",
524
+ dataType: DataType.PROPERTY,
525
+ valueEditorType: "select",
526
+ defaultValue: ""
527
+ },
528
+ VOLTAGE_LEVEL_PROPERTY_1: {
529
+ name: FieldType.VOLTAGE_LEVEL_PROPERTY_1,
530
+ label: "voltageLevelProperty1",
531
+ dataType: DataType.PROPERTY,
532
+ valueEditorType: "select",
533
+ defaultValue: ""
534
+ },
535
+ VOLTAGE_LEVEL_PROPERTY_2: {
536
+ name: FieldType.VOLTAGE_LEVEL_PROPERTY_2,
537
+ label: "voltageLevelProperty2",
538
+ dataType: DataType.PROPERTY,
539
+ valueEditorType: "select",
540
+ defaultValue: ""
520
541
  }
521
542
  };
522
543
  const fields = {
@@ -555,7 +576,9 @@ const fields = {
555
576
  FIELDS_OPTIONS.SHUNT_SUSCEPTANCE_2,
556
577
  FIELDS_OPTIONS.PROPERTY,
557
578
  FIELDS_OPTIONS.SUBSTATION_PROPERTY_1,
558
- FIELDS_OPTIONS.SUBSTATION_PROPERTY_2
579
+ FIELDS_OPTIONS.SUBSTATION_PROPERTY_2,
580
+ FIELDS_OPTIONS.VOLTAGE_LEVEL_PROPERTY_1,
581
+ FIELDS_OPTIONS.VOLTAGE_LEVEL_PROPERTY_2
559
582
  ],
560
583
  TWO_WINDINGS_TRANSFORMER: [
561
584
  FIELDS_OPTIONS.ID,
@@ -585,7 +608,9 @@ const fields = {
585
608
  FIELDS_OPTIONS.PHASE_REGULATION_VALUE,
586
609
  FIELDS_OPTIONS.PROPERTY,
587
610
  FIELDS_OPTIONS.SUBSTATION_PROPERTY_1,
588
- FIELDS_OPTIONS.SUBSTATION_PROPERTY_2
611
+ FIELDS_OPTIONS.SUBSTATION_PROPERTY_2,
612
+ FIELDS_OPTIONS.VOLTAGE_LEVEL_PROPERTY_1,
613
+ FIELDS_OPTIONS.VOLTAGE_LEVEL_PROPERTY_2
589
614
  ],
590
615
  GENERATOR: [
591
616
  FIELDS_OPTIONS.ID,
@@ -607,7 +632,8 @@ const fields = {
607
632
  FIELDS_OPTIONS.PLANNED_OUTAGE_RATE,
608
633
  FIELDS_OPTIONS.FORCED_OUTAGE_RATE,
609
634
  FIELDS_OPTIONS.PROPERTY,
610
- FIELDS_OPTIONS.SUBSTATION_PROPERTY
635
+ FIELDS_OPTIONS.SUBSTATION_PROPERTY,
636
+ FIELDS_OPTIONS.VOLTAGE_LEVEL_PROPERTY
611
637
  ],
612
638
  LOAD: [
613
639
  FIELDS_OPTIONS.ID,
@@ -620,7 +646,8 @@ const fields = {
620
646
  FIELDS_OPTIONS.P0,
621
647
  FIELDS_OPTIONS.Q0,
622
648
  FIELDS_OPTIONS.PROPERTY,
623
- FIELDS_OPTIONS.SUBSTATION_PROPERTY
649
+ FIELDS_OPTIONS.SUBSTATION_PROPERTY,
650
+ FIELDS_OPTIONS.VOLTAGE_LEVEL_PROPERTY
624
651
  ],
625
652
  BATTERY: [
626
653
  FIELDS_OPTIONS.ID,
@@ -634,7 +661,8 @@ const fields = {
634
661
  FIELDS_OPTIONS.TARGET_P,
635
662
  FIELDS_OPTIONS.TARGET_Q,
636
663
  FIELDS_OPTIONS.PROPERTY,
637
- FIELDS_OPTIONS.SUBSTATION_PROPERTY
664
+ FIELDS_OPTIONS.SUBSTATION_PROPERTY,
665
+ FIELDS_OPTIONS.VOLTAGE_LEVEL_PROPERTY
638
666
  ],
639
667
  SHUNT_COMPENSATOR: [
640
668
  FIELDS_OPTIONS.ID,
@@ -651,7 +679,8 @@ const fields = {
651
679
  FIELDS_OPTIONS.MAX_SUSCEPTANCE,
652
680
  FIELDS_OPTIONS.SWITCHED_ON_SUSCEPTANCE,
653
681
  FIELDS_OPTIONS.PROPERTY,
654
- FIELDS_OPTIONS.SUBSTATION_PROPERTY
682
+ FIELDS_OPTIONS.SUBSTATION_PROPERTY,
683
+ FIELDS_OPTIONS.VOLTAGE_LEVEL_PROPERTY
655
684
  ]
656
685
  };
657
686
  export {
@@ -1,5 +1,3 @@
1
- import { StudyMetadata } from '../../../hooks/predefined-properties-hook.ts';
2
- import { ElementAttributes } from '../../../utils/types.ts';
3
1
  import { elementExistsType } from '../criteria-based/criteria-based-filter-edition-dialog';
4
2
  import { UUID } from 'crypto';
5
3
  import { FunctionComponent } from 'react';
@@ -19,10 +17,6 @@ export interface ExpertFilterEditionDialogProps {
19
17
  activeDirectory?: UUID;
20
18
  elementExists?: elementExistsType;
21
19
  language?: string;
22
- fetchDirectoryContent: (directoryUuid: UUID, elementTypes: string[]) => Promise<ElementAttributes[]>;
23
- fetchRootFolders: (types: string[]) => Promise<ElementAttributes[]>;
24
- fetchElementsInfos: (ids: UUID[], elementTypes?: string[], equipmentTypes?: string[]) => Promise<ElementAttributes[]>;
25
- fetchAppsAndUrls: () => Promise<StudyMetadata[]>;
26
20
  }
27
21
  declare const ExpertFilterEditionDialog: FunctionComponent<ExpertFilterEditionDialogProps>;
28
22
  export default ExpertFilterEditionDialog;
@@ -7,10 +7,9 @@ import "@hookform/resolvers/yup";
7
7
  import "../../../hooks/useSnackMessage.js";
8
8
  import "../../dialogs/custom-mui-dialog.js";
9
9
  import "../../../utils/yup-config.js";
10
- import { E } from "../../../chunks/criteria-based-filter-edition-dialog.CbhgOSRk.js";
10
+ import { E } from "../../../chunks/criteria-based-filter-edition-dialog.DcXcQOoT.js";
11
11
  import "../utils/filter-api.js";
12
12
  import "./expert-filter-utils.js";
13
- import "../filter-context.js";
14
13
  import "../constants/filter-constants.js";
15
14
  import "../../../utils/FetchStatus.js";
16
15
  import "yup";
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "@mui/material/Grid";
4
4
  import "react-querybuilder";
5
- import { k, n, l, m } from "../../../chunks/criteria-based-filter-edition-dialog.CbhgOSRk.js";
5
+ import { k, n, l, m } from "../../../chunks/criteria-based-filter-edition-dialog.DcXcQOoT.js";
6
6
  import "react-hook-form";
7
7
  import "./expert-filter-utils.js";
8
8
  import "./expert-filter-constants.js";
@@ -87,7 +87,10 @@ export declare enum FieldType {
87
87
  PROPERTY = "FREE_PROPERTIES",
88
88
  SUBSTATION_PROPERTY = "SUBSTATION_PROPERTIES",
89
89
  SUBSTATION_PROPERTY_1 = "SUBSTATION_PROPERTIES_1",
90
- SUBSTATION_PROPERTY_2 = "SUBSTATION_PROPERTIES_2"
90
+ SUBSTATION_PROPERTY_2 = "SUBSTATION_PROPERTIES_2",
91
+ VOLTAGE_LEVEL_PROPERTY = "VOLTAGE_LEVEL_PROPERTIES",
92
+ VOLTAGE_LEVEL_PROPERTY_1 = "VOLTAGE_LEVEL_PROPERTIES_1",
93
+ VOLTAGE_LEVEL_PROPERTY_2 = "VOLTAGE_LEVEL_PROPERTIES_2"
91
94
  }
92
95
  export declare enum DataType {
93
96
  STRING = "STRING",
@@ -84,6 +84,9 @@ var FieldType = /* @__PURE__ */ ((FieldType2) => {
84
84
  FieldType2["SUBSTATION_PROPERTY"] = "SUBSTATION_PROPERTIES";
85
85
  FieldType2["SUBSTATION_PROPERTY_1"] = "SUBSTATION_PROPERTIES_1";
86
86
  FieldType2["SUBSTATION_PROPERTY_2"] = "SUBSTATION_PROPERTIES_2";
87
+ FieldType2["VOLTAGE_LEVEL_PROPERTY"] = "VOLTAGE_LEVEL_PROPERTIES";
88
+ FieldType2["VOLTAGE_LEVEL_PROPERTY_1"] = "VOLTAGE_LEVEL_PROPERTIES_1";
89
+ FieldType2["VOLTAGE_LEVEL_PROPERTY_2"] = "VOLTAGE_LEVEL_PROPERTIES_2";
87
90
  return FieldType2;
88
91
  })(FieldType || {});
89
92
  var DataType = /* @__PURE__ */ ((DataType2) => {
@@ -7,7 +7,7 @@ import "@hookform/resolvers/yup";
7
7
  import "../../../hooks/useSnackMessage.js";
8
8
  import "../../dialogs/custom-mui-dialog.js";
9
9
  import "../../../utils/yup-config.js";
10
- import { a } from "../../../chunks/criteria-based-filter-edition-dialog.CbhgOSRk.js";
10
+ import { a } from "../../../chunks/criteria-based-filter-edition-dialog.DcXcQOoT.js";
11
11
  import "../../../utils/field-constants.js";
12
12
  import "uuid";
13
13
  import "../../../utils/equipment-types.js";
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "../../../utils/field-constants.js";
4
4
  import "../../../utils/yup-config.js";
5
- import { d, f, e, g } from "../../../chunks/criteria-based-filter-edition-dialog.CbhgOSRk.js";
5
+ import { d, f, e, g } from "../../../chunks/criteria-based-filter-edition-dialog.DcXcQOoT.js";
6
6
  import "react-intl";
7
7
  import "react-hook-form";
8
8
  import "@mui/material/Grid";
@@ -1,5 +1,3 @@
1
- import { ElementAttributes } from '../../utils/types.ts';
2
- import { StudyMetadata } from '../../hooks/predefined-properties-hook.ts';
3
1
  import { UUID } from 'crypto';
4
2
  import { elementExistsType } from './criteria-based/criteria-based-filter-edition-dialog';
5
3
  import { FunctionComponent } from 'react';
@@ -8,13 +6,8 @@ export interface FilterCreationDialogProps {
8
6
  open: boolean;
9
7
  onClose: () => void;
10
8
  activeDirectory?: UUID;
11
- fetchAppsAndUrls: () => Promise<StudyMetadata[]>;
12
9
  elementExists?: elementExistsType;
13
10
  language?: string;
14
- fetchDirectoryContent?: (directoryUuid: UUID, elementTypes: string[]) => Promise<ElementAttributes[]>;
15
- fetchRootFolders?: (types: string[]) => Promise<ElementAttributes[]>;
16
- fetchElementsInfos?: (ids: UUID[], elementTypes?: string[], equipmentTypes?: string[]) => Promise<ElementAttributes[]>;
17
- fetchPath?: (elementUuid: UUID) => Promise<ElementAttributes[]>;
18
11
  sourceFilterForExplicitNamingConversion?: {
19
12
  id: UUID;
20
13
  equipmentType: string;
@@ -5,11 +5,10 @@ import "react-hook-form";
5
5
  import "../../hooks/useSnackMessage.js";
6
6
  import "../dialogs/custom-mui-dialog.js";
7
7
  import "./criteria-based/criteria-based-filter-form.js";
8
- import { F } from "../../chunks/criteria-based-filter-edition-dialog.CbhgOSRk.js";
8
+ import { F } from "../../chunks/criteria-based-filter-edition-dialog.DcXcQOoT.js";
9
9
  import "../../utils/field-constants.js";
10
10
  import "../../utils/yup-config.js";
11
11
  import "@hookform/resolvers/yup";
12
- import "./filter-context.js";
13
12
  import "./constants/filter-constants.js";
14
13
  import "yup";
15
14
  export {
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
2
2
  import "../inputs/react-hook-form/unique-name-input.js";
3
3
  import "../../utils/field-constants.js";
4
4
  import "./criteria-based/criteria-based-filter-form.js";
5
- import { o } from "../../chunks/criteria-based-filter-edition-dialog.CbhgOSRk.js";
5
+ import { o } from "../../chunks/criteria-based-filter-edition-dialog.DcXcQOoT.js";
6
6
  import "react";
7
7
  import "react-hook-form";
8
8
  import "@mui/material";
@@ -1,3 +1,4 @@
1
+ import { EquipmentType } from '../../../utils/EquipmentType';
1
2
  import { FunctionComponent } from 'react';
2
3
 
3
4
  type FormField = {
@@ -12,6 +13,6 @@ export type FormEquipment = {
12
13
  label: string;
13
14
  fields: FormField[];
14
15
  };
15
- export declare const CONTINGENCY_LIST_EQUIPMENTS: Record<string, FormEquipment>;
16
- export declare const FILTER_EQUIPMENTS: Record<string, FormEquipment>;
16
+ export declare const CONTINGENCY_LIST_EQUIPMENTS: Record<EquipmentType.BUSBAR_SECTION | EquipmentType.LINE | EquipmentType.TWO_WINDINGS_TRANSFORMER | EquipmentType.GENERATOR | EquipmentType.SHUNT_COMPENSATOR | EquipmentType.HVDC_LINE | EquipmentType.DANGLING_LINE, FormEquipment>;
17
+ export declare const FILTER_EQUIPMENTS: Record<EquipmentType.SUBSTATION | EquipmentType.VOLTAGE_LEVEL | EquipmentType.LINE | EquipmentType.TWO_WINDINGS_TRANSFORMER | EquipmentType.THREE_WINDINGS_TRANSFORMER | EquipmentType.GENERATOR | EquipmentType.BATTERY | EquipmentType.LOAD | EquipmentType.SHUNT_COMPENSATOR | EquipmentType.STATIC_VAR_COMPENSATOR | EquipmentType.HVDC_LINE | EquipmentType.DANGLING_LINE, FormEquipment>;
17
18
  export {};
@@ -67,6 +67,11 @@ const energySource = {
67
67
  }
68
68
  };
69
69
  const CONTINGENCY_LIST_EQUIPMENTS = {
70
+ BUSBAR_SECTION: {
71
+ id: "BUSBAR_SECTION",
72
+ label: "BusBarSections",
73
+ fields: [countries, nominalVoltage]
74
+ },
70
75
  LINE: {
71
76
  id: "LINE",
72
77
  label: "Lines",
@@ -89,14 +94,9 @@ const CONTINGENCY_LIST_EQUIPMENTS = {
89
94
  },
90
95
  HVDC_LINE: {
91
96
  id: "HVDC_LINE",
92
- label: "HvdcLines",
97
+ label: "Hvdc",
93
98
  fields: [countries1, countries2, nominalVoltage]
94
99
  },
95
- BUSBAR_SECTION: {
96
- id: "BUSBAR_SECTION",
97
- label: "BusBarSections",
98
- fields: [countries, nominalVoltage]
99
- },
100
100
  DANGLING_LINE: {
101
101
  id: "DANGLING_LINE",
102
102
  label: "DanglingLines",
@@ -104,7 +104,26 @@ const CONTINGENCY_LIST_EQUIPMENTS = {
104
104
  }
105
105
  };
106
106
  const FILTER_EQUIPMENTS = {
107
- ...CONTINGENCY_LIST_EQUIPMENTS,
107
+ SUBSTATION: {
108
+ id: "SUBSTATION",
109
+ label: "Substations",
110
+ fields: [countries, nominalVoltage]
111
+ },
112
+ VOLTAGE_LEVEL: {
113
+ id: "VOLTAGE_LEVEL",
114
+ label: "VoltageLevels",
115
+ fields: [countries, nominalVoltage]
116
+ },
117
+ LINE: {
118
+ id: "LINE",
119
+ label: "Lines",
120
+ fields: [countries1, countries2, nominalVoltage1, nominalVoltage2]
121
+ },
122
+ TWO_WINDINGS_TRANSFORMER: {
123
+ id: "TWO_WINDINGS_TRANSFORMER",
124
+ label: "TwoWindingsTransformers",
125
+ fields: [countries, nominalVoltage1, nominalVoltage2]
126
+ },
108
127
  THREE_WINDINGS_TRANSFORMER: {
109
128
  id: "THREE_WINDINGS_TRANSFORMER",
110
129
  label: "ThreeWindingsTransformers",
@@ -115,40 +134,35 @@ const FILTER_EQUIPMENTS = {
115
134
  label: "Generators",
116
135
  fields: [countries, energySource, nominalVoltage]
117
136
  },
118
- LOAD: {
119
- id: "LOAD",
120
- label: "Loads",
121
- fields: [countries, nominalVoltage]
122
- },
123
137
  BATTERY: {
124
138
  id: "BATTERY",
125
139
  label: "Batteries",
126
140
  fields: [countries, nominalVoltage]
127
141
  },
128
- LCC_CONVERTER_STATION: {
129
- id: "LCC_CONVERTER_STATION",
130
- label: "LccConverterStations",
131
- fields: [countries, nominalVoltage]
132
- },
133
- VSC_CONVERTER_STATION: {
134
- id: "VSC_CONVERTER_STATION",
135
- label: "VscConverterStations",
136
- fields: [countries, nominalVoltage]
137
- },
138
- VOLTAGE_LEVEL: {
139
- id: "VOLTAGE_LEVEL",
140
- label: "VoltageLevels",
142
+ LOAD: {
143
+ id: "LOAD",
144
+ label: "Loads",
141
145
  fields: [countries, nominalVoltage]
142
146
  },
143
- SUBSTATION: {
144
- id: "SUBSTATION",
145
- label: "Substations",
147
+ SHUNT_COMPENSATOR: {
148
+ id: "SHUNT_COMPENSATOR",
149
+ label: "ShuntCompensators",
146
150
  fields: [countries, nominalVoltage]
147
151
  },
148
152
  STATIC_VAR_COMPENSATOR: {
149
153
  id: "STATIC_VAR_COMPENSATOR",
150
154
  label: "StaticVarCompensators",
151
155
  fields: [countries, nominalVoltage]
156
+ },
157
+ HVDC_LINE: {
158
+ id: "HVDC_LINE",
159
+ label: "Hvdc",
160
+ fields: [countries1, countries2, nominalVoltage]
161
+ },
162
+ DANGLING_LINE: {
163
+ id: "DANGLING_LINE",
164
+ label: "DanglingLines",
165
+ fields: [countries, nominalVoltage]
152
166
  }
153
167
  };
154
168
  export {
@@ -4,7 +4,7 @@ import "@mui/material/IconButton";
4
4
  import "@mui/icons-material";
5
5
  import "@mui/icons-material/ControlPoint";
6
6
  import "@mui/icons-material/Delete";
7
- import { B } from "../../../../chunks/criteria-based-filter-edition-dialog.CbhgOSRk.js";
7
+ import { B } from "../../../../chunks/criteria-based-filter-edition-dialog.DcXcQOoT.js";
8
8
  import "react";
9
9
  import "react-intl";
10
10
  import "@mui/material/styles";
@@ -14,12 +14,11 @@ import "@mui/material";
14
14
  import "react-hook-form";
15
15
  import "../../../../TreeViewFinder/TreeViewFinder.js";
16
16
  import "../../../../TopBar/TopBar.js";
17
- import "../../../../TopBar/GridLogo.js";
18
- import "../../../../TopBar/AboutDialog.js";
19
- import "../../../../SnackbarProvider/SnackbarProvider.js";
17
+ import "@mui/icons-material";
18
+ import "@mui/lab";
19
+ import "notistack";
20
20
  import "react-router-dom";
21
21
  import "../../../../../utils/AuthService.js";
22
- import "@mui/icons-material";
23
22
  import "../../../../MuiVirtualizedTable/MuiVirtualizedTable.js";
24
23
  import "../../../../ReportViewer/report-item.js";
25
24
  import "uuid";
@@ -27,29 +26,23 @@ import "../../../../ReportViewer/log-table.js";
27
26
  import "../../../../ReportViewer/report-tree-view-context.js";
28
27
  import "@mui/x-tree-view";
29
28
  import "../../../../OverflowableText/overflowable-text.js";
30
- import "../../../../ElementSearchDialog/tag-renderer.js";
29
+ import "clsx";
31
30
  import "../../utils/submit-button.js";
32
31
  import "../../utils/cancel-button.js";
33
32
  import "../../provider/custom-form-provider.js";
34
33
  import "../../../../dialogs/description-modification-dialog.js";
35
- import "../../../../filter/filter-context.js";
36
34
  import "../../../../../utils/field-constants.js";
37
- import "notistack";
38
35
  import "yup";
39
36
  import "../../../../dialogs/popup-confirmation-dialog.js";
40
- import { c } from "../../../../../chunks/criteria-based-filter-edition-dialog.CbhgOSRk.js";
37
+ import { c } from "../../../../../chunks/criteria-based-filter-edition-dialog.DcXcQOoT.js";
41
38
  import "ag-grid-react";
42
39
  import "ag-grid-community/styles/ag-grid.css";
43
40
  import "ag-grid-community/styles/ag-theme-alpine.css";
44
41
  import "autosuggest-highlight/match";
45
42
  import "autosuggest-highlight/parse";
46
- import "clsx";
47
43
  import "../../../../CardErrorBoundary/card-error-boundary.js";
48
- import "../../slider-input.js";
49
- import "../../numbers/integer-input.js";
50
- import "../../booleans/checkbox-input.js";
51
- import "../../booleans/switch-input.js";
52
44
  import "@mui/icons-material/Folder";
45
+ import "../../../../CustomAGGrid/custom-aggrid.js";
53
46
  import "../../../../../chunks/filter-properties.B7-q_yPf.js";
54
47
  import "@mui/icons-material/Delete";
55
48
  import "@mui/material/IconButton";
@@ -5,7 +5,7 @@ import "ag-grid-react";
5
5
  import "ag-grid-community/styles/ag-grid.css";
6
6
  import "ag-grid-community/styles/ag-theme-alpine.css";
7
7
  import "@mui/material";
8
- import { C, R, C as C2 } from "../../../../chunks/criteria-based-filter-edition-dialog.CbhgOSRk.js";
8
+ import { C, R, C as C2 } from "../../../../chunks/criteria-based-filter-edition-dialog.DcXcQOoT.js";
9
9
  import "react-intl";
10
10
  import "../../../../utils/field-constants.js";
11
11
  export {
@@ -1,4 +1,4 @@
1
- import { Option } from '../../../../utils/types.ts';
1
+ import { Option } from '../../../../utils/types';
2
2
  import { FunctionComponent } from 'react';
3
3
  import { AutocompleteProps, TextFieldProps } from '@mui/material';
4
4
 
@@ -1,16 +1,10 @@
1
- import { default as PropTypes } from 'prop-types';
2
- export default BooleanInput;
3
- declare function BooleanInput({ name, label, formProps, Input }: {
4
- name: any;
5
- label: any;
6
- formProps: any;
7
- Input: any;
8
- }): import("react/jsx-runtime").JSX.Element;
9
- declare namespace BooleanInput {
10
- namespace propTypes {
11
- let name: PropTypes.Validator<string>;
12
- let label: PropTypes.Requireable<string>;
13
- let formProps: PropTypes.Requireable<object>;
14
- let Input: PropTypes.Validator<NonNullable<PropTypes.ReactComponentLike>>;
15
- }
1
+ import { Checkbox, Switch } from '@mui/material';
2
+
3
+ export interface BooleanInputProps {
4
+ name: string;
5
+ label?: string;
6
+ formProps?: any;
7
+ Input: typeof Switch | typeof Checkbox;
16
8
  }
9
+ declare const BooleanInput: ({ name, label, formProps, Input }: BooleanInputProps) => import("react/jsx-runtime").JSX.Element;
10
+ export default BooleanInput;
@@ -1,6 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { useCallback } from "react";
3
- import PropTypes from "prop-types";
4
3
  import { useIntl } from "react-intl";
5
4
  import { FormControlLabel } from "@mui/material";
6
5
  import { useController } from "react-hook-form";
@@ -38,12 +37,6 @@ const BooleanInput = ({ name, label, formProps, Input }) => {
38
37
  }
39
38
  return CustomInput;
40
39
  };
41
- BooleanInput.propTypes = {
42
- name: PropTypes.string.isRequired,
43
- label: PropTypes.string,
44
- formProps: PropTypes.object,
45
- Input: PropTypes.elementType.isRequired
46
- };
47
40
  export {
48
41
  BooleanInput as default
49
42
  };