@gridsuite/commons-ui 0.58.0 → 0.59.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 (182) hide show
  1. package/dist/chunks/{criteria-based-filter-edition-dialog.CbhgOSRk.js → criteria-based-filter-edition-dialog.p2pUWzxc.js} +20 -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/DirectoryItemSelector/directory-item-selector.d.ts +0 -4
  9. package/dist/components/DirectoryItemSelector/directory-item-selector.js +13 -26
  10. package/dist/components/ElementSearchDialog/equipment-item.d.ts +25 -16
  11. package/dist/components/ElementSearchDialog/equipment-item.js +5 -5
  12. package/dist/components/ElementSearchDialog/index.d.ts +6 -0
  13. package/dist/components/ElementSearchDialog/tag-renderer.d.ts +20 -10
  14. package/dist/components/ElementSearchDialog/tag-renderer.js +6 -11
  15. package/dist/components/FlatParameters/FlatParameters.d.ts +29 -9
  16. package/dist/components/FlatParameters/FlatParameters.js +3 -3
  17. package/dist/components/FlatParameters/index.d.ts +6 -0
  18. package/dist/components/Login/Login.d.ts +11 -4
  19. package/dist/components/Login/Logout.d.ts +11 -4
  20. package/dist/components/Login/index.d.ts +6 -0
  21. package/dist/components/MuiVirtualizedTable/ColumnHeader.d.ts +25 -2
  22. package/dist/components/MuiVirtualizedTable/ColumnHeader.js +68 -59
  23. package/dist/components/MuiVirtualizedTable/KeyedColumnsRowIndexer.d.ts +72 -61
  24. package/dist/components/MuiVirtualizedTable/KeyedColumnsRowIndexer.js +69 -83
  25. package/dist/components/MuiVirtualizedTable/MuiVirtualizedTable.d.ts +93 -113
  26. package/dist/components/MuiVirtualizedTable/MuiVirtualizedTable.js +84 -106
  27. package/dist/components/MuiVirtualizedTable/index.d.ts +7 -1
  28. package/dist/components/MultipleSelectionDialog/MultipleSelectionDialog.d.ts +16 -9
  29. package/dist/components/MultipleSelectionDialog/MultipleSelectionDialog.js +1 -1
  30. package/dist/components/MultipleSelectionDialog/index.d.ts +6 -0
  31. package/dist/components/OverflowableText/index.d.ts +6 -0
  32. package/dist/components/OverflowableText/overflowable-text.d.ts +11 -1
  33. package/dist/components/OverflowableText/overflowable-text.js +1 -18
  34. package/dist/components/ReportViewer/filter-button.d.ts +11 -1
  35. package/dist/components/ReportViewer/filter-button.js +5 -2
  36. package/dist/components/ReportViewer/index.d.ts +6 -0
  37. package/dist/components/ReportViewer/log-report-item.d.ts +14 -64
  38. package/dist/components/ReportViewer/log-report-item.js +13 -47
  39. package/dist/components/ReportViewer/log-report.d.ts +16 -17
  40. package/dist/components/ReportViewer/log-report.js +2 -1
  41. package/dist/components/ReportViewer/log-severity.d.ts +13 -0
  42. package/dist/components/ReportViewer/log-severity.js +35 -0
  43. package/dist/components/ReportViewer/log-table.d.ts +9 -6
  44. package/dist/components/ReportViewer/log-table.js +6 -4
  45. package/dist/components/ReportViewer/multi-select-list.d.ts +17 -1
  46. package/dist/components/ReportViewer/report-item.d.ts +12 -12
  47. package/dist/components/ReportViewer/report-item.js +0 -7
  48. package/dist/components/ReportViewer/report-tree-view-context.d.ts +11 -1
  49. package/dist/components/ReportViewer/report-viewer.d.ts +7 -4
  50. package/dist/components/ReportViewer/report-viewer.js +8 -6
  51. package/dist/components/ReportViewer/report.type.d.ts +22 -0
  52. package/dist/components/ReportViewer/report.type.js +1 -0
  53. package/dist/components/ReportViewerDialog/index.d.ts +6 -0
  54. package/dist/components/ReportViewerDialog/report-viewer-dialog.d.ts +9 -1
  55. package/dist/components/SignInCallbackHandler/SignInCallbackHandler.d.ts +7 -4
  56. package/dist/components/SignInCallbackHandler/SignInCallbackHandler.js +4 -1
  57. package/dist/components/SignInCallbackHandler/index.d.ts +6 -0
  58. package/dist/components/SilentRenewCallbackHandler/SilentRenewCallbackHandler.d.ts +7 -4
  59. package/dist/components/SilentRenewCallbackHandler/index.d.ts +6 -0
  60. package/dist/components/SnackbarProvider/SnackbarProvider.d.ts +3 -1
  61. package/dist/components/SnackbarProvider/SnackbarProvider.js +9 -7
  62. package/dist/components/SnackbarProvider/index.d.ts +6 -0
  63. package/dist/components/TopBar/AboutDialog.d.ts +30 -23
  64. package/dist/components/TopBar/AboutDialog.js +4 -22
  65. package/dist/components/TopBar/GridLogo.d.ts +13 -32
  66. package/dist/components/TopBar/GridLogo.js +12 -15
  67. package/dist/components/TopBar/TopBar.d.ts +52 -51
  68. package/dist/components/TopBar/TopBar.js +389 -380
  69. package/dist/components/TopBar/TopBar.test.d.ts +6 -0
  70. package/dist/components/TopBar/index.d.ts +6 -0
  71. package/dist/components/dialogs/modify-element-selection.d.ts +1 -1
  72. package/dist/components/dialogs/modify-element-selection.js +5 -14
  73. package/dist/components/filter/criteria-based/criteria-based-filter-edition-dialog.d.ts +1 -1
  74. package/dist/components/filter/criteria-based/criteria-based-filter-edition-dialog.js +1 -1
  75. package/dist/components/filter/criteria-based/filter-free-properties.d.ts +1 -1
  76. package/dist/components/filter/criteria-based/filter-property.d.ts +1 -1
  77. package/dist/components/filter/expert/expert-filter-constants.d.ts +22 -1
  78. package/dist/components/filter/expert/expert-filter-constants.js +39 -10
  79. package/dist/components/filter/expert/expert-filter-edition-dialog.d.ts +0 -6
  80. package/dist/components/filter/expert/expert-filter-edition-dialog.js +1 -2
  81. package/dist/components/filter/expert/expert-filter-form.js +1 -1
  82. package/dist/components/filter/expert/expert-filter.type.d.ts +4 -1
  83. package/dist/components/filter/expert/expert-filter.type.js +3 -0
  84. package/dist/components/filter/explicit-naming/explicit-naming-filter-edition-dialog.js +1 -1
  85. package/dist/components/filter/explicit-naming/explicit-naming-filter-form.js +1 -1
  86. package/dist/components/filter/filter-creation-dialog.d.ts +0 -7
  87. package/dist/components/filter/filter-creation-dialog.js +1 -2
  88. package/dist/components/filter/filter-form.js +1 -1
  89. package/dist/components/filter/utils/filter-form-utils.js +11 -18
  90. package/dist/components/inputs/react-hook-form/ag-grid-table/bottom-right-buttons.js +1 -1
  91. package/dist/components/inputs/react-hook-form/ag-grid-table/csv-uploader/csv-uploader.js +5 -13
  92. package/dist/components/inputs/react-hook-form/ag-grid-table/custom-ag-grid-table.js +1 -1
  93. package/dist/components/inputs/react-hook-form/autocomplete-inputs/autocomplete-input.d.ts +1 -1
  94. package/dist/components/inputs/react-hook-form/booleans/boolean-input.d.ts +9 -15
  95. package/dist/components/inputs/react-hook-form/booleans/boolean-input.js +0 -7
  96. package/dist/components/inputs/react-hook-form/booleans/checkbox-input.d.ts +8 -13
  97. package/dist/components/inputs/react-hook-form/booleans/checkbox-input.js +0 -6
  98. package/dist/components/inputs/react-hook-form/booleans/switch-input.d.ts +8 -13
  99. package/dist/components/inputs/react-hook-form/booleans/switch-input.js +0 -6
  100. package/dist/components/inputs/react-hook-form/directory-items-input.d.ts +0 -2
  101. package/dist/components/inputs/react-hook-form/directory-items-input.js +10 -14
  102. package/dist/components/inputs/react-hook-form/error-management/mid-form-error.d.ts +5 -3
  103. package/dist/components/inputs/react-hook-form/numbers/integer-input.d.ts +3 -20
  104. package/dist/components/inputs/react-hook-form/numbers/integer-input.js +1 -4
  105. package/dist/components/inputs/react-hook-form/range-input.d.ts +1 -1
  106. package/dist/components/inputs/react-hook-form/select-inputs/countries-input.js +12 -1
  107. package/dist/components/inputs/react-hook-form/select-inputs/select-input.d.ts +1 -1
  108. package/dist/components/inputs/react-hook-form/slider-input.d.ts +7 -20
  109. package/dist/components/inputs/react-hook-form/slider-input.js +4 -12
  110. package/dist/components/inputs/react-hook-form/text-input.d.ts +1 -1
  111. package/dist/components/inputs/react-hook-form/unique-name-input.d.ts +1 -1
  112. package/dist/components/inputs/react-hook-form/utils/text-field-with-adornment.d.ts +1 -1
  113. package/dist/components/inputs/react-query-builder/custom-react-query-builder.js +1 -1
  114. package/dist/components/inputs/react-query-builder/element-value-editor.js +7 -14
  115. package/dist/components/inputs/react-query-builder/remove-button.js +1 -1
  116. package/dist/components/inputs/react-query-builder/value-editor.js +1 -1
  117. package/dist/components/translations/card-error-boundary-en.d.ts +1 -1
  118. package/dist/components/translations/card-error-boundary-fr.d.ts +1 -1
  119. package/dist/components/translations/common-button-en.d.ts +10 -4
  120. package/dist/components/translations/common-button-fr.d.ts +10 -4
  121. package/dist/components/translations/directory-items-input-en.d.ts +1 -1
  122. package/dist/components/translations/directory-items-input-fr.d.ts +1 -1
  123. package/dist/components/translations/element-search-en.d.ts +1 -1
  124. package/dist/components/translations/element-search-fr.d.ts +1 -1
  125. package/dist/components/translations/equipment-search-en.d.ts +1 -1
  126. package/dist/components/translations/equipment-search-fr.d.ts +1 -1
  127. package/dist/components/translations/filter-en.d.ts +27 -21
  128. package/dist/components/translations/filter-en.js +2 -1
  129. package/dist/components/translations/filter-expert-en.d.ts +73 -0
  130. package/dist/components/translations/filter-expert-en.js +69 -0
  131. package/dist/components/translations/filter-expert-fr.d.ts +73 -0
  132. package/dist/components/translations/filter-expert-fr.js +69 -0
  133. package/dist/components/translations/filter-fr.d.ts +27 -21
  134. package/dist/components/translations/filter-fr.js +2 -1
  135. package/dist/components/translations/flat-parameters-en.d.ts +1 -1
  136. package/dist/components/translations/flat-parameters-fr.d.ts +1 -1
  137. package/dist/components/translations/inputs-en.d.ts +1 -1
  138. package/dist/components/translations/inputs-fr.d.ts +1 -1
  139. package/dist/components/translations/login-en.d.ts +1 -1
  140. package/dist/components/translations/login-fr.d.ts +1 -1
  141. package/dist/components/translations/multiple-selection-dialog-en.d.ts +1 -1
  142. package/dist/components/translations/multiple-selection-dialog-fr.d.ts +1 -1
  143. package/dist/components/translations/report-viewer-en.d.ts +1 -1
  144. package/dist/components/translations/report-viewer-fr.d.ts +1 -1
  145. package/dist/components/translations/table-en.d.ts +1 -1
  146. package/dist/components/translations/table-fr.d.ts +1 -1
  147. package/dist/components/translations/top-bar-en.d.ts +1 -1
  148. package/dist/components/translations/top-bar-fr.d.ts +1 -1
  149. package/dist/components/translations/treeview-finder-en.d.ts +1 -1
  150. package/dist/components/translations/treeview-finder-fr.d.ts +1 -1
  151. package/dist/hooks/localized-countries-hook.d.ts +10 -4
  152. package/dist/hooks/localized-countries-hook.js +1 -1
  153. package/dist/hooks/predefined-properties-hook.d.ts +1 -15
  154. package/dist/hooks/predefined-properties-hook.js +8 -16
  155. package/dist/index.d.ts +63 -217
  156. package/dist/index.js +102 -77
  157. package/dist/redux/actions.d.ts +33 -29
  158. package/dist/services/apps-metadata.d.ts +32 -0
  159. package/dist/services/apps-metadata.js +26 -0
  160. package/dist/services/directory.d.ts +6 -0
  161. package/dist/services/directory.js +42 -0
  162. package/dist/services/explore.d.ts +2 -0
  163. package/dist/services/explore.js +29 -1
  164. package/dist/services/index.d.ts +16 -0
  165. package/dist/services/index.js +20 -0
  166. package/dist/services/utils.d.ts +1 -0
  167. package/dist/services/utils.js +5 -1
  168. package/dist/utils/AuthService.d.ts +20 -9
  169. package/dist/utils/AuthService.js +29 -13
  170. package/dist/utils/ElementIcon.d.ts +4 -1
  171. package/dist/utils/UserManagerMock.d.ts +14 -14
  172. package/dist/utils/UserManagerMock.js +9 -15
  173. package/dist/utils/algos.d.ts +1 -1
  174. package/dist/utils/equipment-types-for-predefined-properties-mapper.d.ts +1 -1
  175. package/dist/utils/functions.d.ts +0 -1
  176. package/dist/utils/functions.js +1 -3
  177. package/dist/utils/styles.d.ts +5 -3
  178. package/dist/utils/styles.js +4 -1
  179. package/dist/utils/types.d.ts +13 -3
  180. package/package.json +2 -1
  181. package/dist/components/filter/filter-context.d.ts +0 -13
  182. 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.p2pUWzxc.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.p2pUWzxc.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.p2pUWzxc.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.p2pUWzxc.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.p2pUWzxc.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.p2pUWzxc.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.p2pUWzxc.js";
6
6
  import "react";
7
7
  import "react-hook-form";
8
8
  import "@mui/material";
@@ -66,7 +66,7 @@ const energySource = {
66
66
  ]
67
67
  }
68
68
  };
69
- const CONTINGENCY_LIST_EQUIPMENTS = {
69
+ const COMMON_EQUIPMENTS = {
70
70
  LINE: {
71
71
  id: "LINE",
72
72
  label: "Lines",
@@ -89,22 +89,25 @@ const CONTINGENCY_LIST_EQUIPMENTS = {
89
89
  },
90
90
  HVDC_LINE: {
91
91
  id: "HVDC_LINE",
92
- label: "HvdcLines",
92
+ label: "Hvdc",
93
93
  fields: [countries1, countries2, nominalVoltage]
94
94
  },
95
- BUSBAR_SECTION: {
96
- id: "BUSBAR_SECTION",
97
- label: "BusBarSections",
98
- fields: [countries, nominalVoltage]
99
- },
100
95
  DANGLING_LINE: {
101
96
  id: "DANGLING_LINE",
102
97
  label: "DanglingLines",
103
98
  fields: [countries, nominalVoltage]
104
99
  }
105
100
  };
101
+ const CONTINGENCY_LIST_EQUIPMENTS = {
102
+ ...COMMON_EQUIPMENTS,
103
+ BUSBAR_SECTION: {
104
+ id: "BUSBAR_SECTION",
105
+ label: "BusBarSections",
106
+ fields: [countries, nominalVoltage]
107
+ }
108
+ };
106
109
  const FILTER_EQUIPMENTS = {
107
- ...CONTINGENCY_LIST_EQUIPMENTS,
110
+ ...COMMON_EQUIPMENTS,
108
111
  THREE_WINDINGS_TRANSFORMER: {
109
112
  id: "THREE_WINDINGS_TRANSFORMER",
110
113
  label: "ThreeWindingsTransformers",
@@ -125,16 +128,6 @@ const FILTER_EQUIPMENTS = {
125
128
  label: "Batteries",
126
129
  fields: [countries, nominalVoltage]
127
130
  },
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
131
  VOLTAGE_LEVEL: {
139
132
  id: "VOLTAGE_LEVEL",
140
133
  label: "VoltageLevels",
@@ -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.p2pUWzxc.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,28 +26,21 @@ 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.p2pUWzxc.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";
53
45
  import "../../../../../chunks/filter-properties.B7-q_yPf.js";
54
46
  import "@mui/icons-material/Delete";
@@ -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.p2pUWzxc.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
  };
@@ -1,14 +1,9 @@
1
- import { default as PropTypes } from 'prop-types';
2
- export default CheckboxInput;
3
- declare function CheckboxInput({ name, label, formProps }: {
4
- name: any;
5
- label: any;
6
- formProps: any;
7
- }): import("react/jsx-runtime").JSX.Element;
8
- declare namespace CheckboxInput {
9
- namespace propTypes {
10
- let name: PropTypes.Validator<string>;
11
- let label: PropTypes.Requireable<string>;
12
- let formProps: PropTypes.Requireable<object>;
13
- }
1
+ import { CheckboxProps } from '@mui/material';
2
+
3
+ export interface CheckboxInputProps {
4
+ name: string;
5
+ label?: string;
6
+ formProps?: CheckboxProps;
14
7
  }
8
+ declare const CheckboxInput: ({ name, label, formProps }: CheckboxInputProps) => import("react/jsx-runtime").JSX.Element;
9
+ export default CheckboxInput;
@@ -1,5 +1,4 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import PropTypes from "prop-types";
3
2
  import BooleanInput from "./boolean-input.js";
4
3
  import { Checkbox } from "@mui/material";
5
4
  const CheckboxInput = ({ name, label, formProps }) => {
@@ -13,11 +12,6 @@ const CheckboxInput = ({ name, label, formProps }) => {
13
12
  }
14
13
  );
15
14
  };
16
- CheckboxInput.propTypes = {
17
- name: PropTypes.string.isRequired,
18
- label: PropTypes.string,
19
- formProps: PropTypes.object
20
- };
21
15
  export {
22
16
  CheckboxInput as default
23
17
  };
@@ -1,14 +1,9 @@
1
- import { default as PropTypes } from 'prop-types';
2
- export default SwitchInput;
3
- declare function SwitchInput({ name, label, formProps }: {
4
- name: any;
5
- label: any;
6
- formProps: any;
7
- }): import("react/jsx-runtime").JSX.Element;
8
- declare namespace SwitchInput {
9
- namespace propTypes {
10
- let name: PropTypes.Validator<string>;
11
- let label: PropTypes.Requireable<string>;
12
- let formProps: PropTypes.Requireable<object>;
13
- }
1
+ import { SwitchProps } from '@mui/material';
2
+
3
+ export interface SwitchInputProps {
4
+ name: string;
5
+ label?: string;
6
+ formProps?: SwitchProps;
14
7
  }
8
+ declare const SwitchInput: ({ name, label, formProps }: SwitchInputProps) => import("react/jsx-runtime").JSX.Element;
9
+ export default SwitchInput;