@gridsuite/commons-ui 0.237.0 → 0.239.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.
- package/dist/components/composite/agGridTable/BottomTableButtons.d.ts +1 -1
- package/dist/components/composite/agGridTable/CustomAgGridTable.js +7 -1
- package/dist/components/composite/agGridTable/cellEditors/numericEditor.d.ts +1 -1
- package/dist/components/composite/customAGGrid/cell-renderers.d.ts +8 -8
- package/dist/components/composite/customAGGrid/cell-renderers.js +1 -1
- package/dist/components/composite/customAGGrid/context/custom-aggrid-context.d.ts +13 -0
- package/dist/components/composite/customAGGrid/context/custom-aggrid-context.js +23 -0
- package/dist/components/composite/customAGGrid/context/index.d.ts +7 -0
- package/dist/components/composite/customAGGrid/context/index.js +7 -0
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-aggrid-autocomplete-filter.d.ts +7 -0
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-aggrid-autocomplete-filter.js +74 -0
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-aggrid-comparator-filter.d.ts +2 -0
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-aggrid-comparator-filter.js +52 -0
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-aggrid-comparator-selector.d.ts +9 -0
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-aggrid-comparator-selector.js +18 -0
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-aggrid-filter.d.ts +11 -0
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-aggrid-filter.js +77 -0
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-aggrid-text-filter.d.ts +10 -0
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-aggrid-text-filter.js +59 -0
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-filter-icon.d.ts +8 -0
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/custom-filter-icon.js +22 -0
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/hooks/index.d.ts +8 -0
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/hooks/index.js +6 -0
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/hooks/use-custom-aggrid-column-filter.d.ts +7 -0
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/hooks/use-custom-aggrid-column-filter.js +111 -0
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/hooks/use-custom-aggrid-comparator-filter.d.ts +12 -0
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/hooks/use-custom-aggrid-comparator-filter.js +65 -0
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/index.d.ts +14 -0
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/index.js +21 -0
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/utils/filter-tolerance-utils.d.ts +7 -0
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/utils/filter-tolerance-utils.js +79 -0
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/utils/index.d.ts +7 -0
- package/dist/components/composite/customAGGrid/custom-aggrid-filters/utils/index.js +5 -0
- package/dist/components/composite/customAGGrid/custom-aggrid-header.d.ts +15 -0
- package/dist/components/composite/customAGGrid/custom-aggrid-header.js +96 -0
- package/dist/components/composite/customAGGrid/custom-aggrid-menu.d.ts +11 -0
- package/dist/components/composite/customAGGrid/custom-aggrid-menu.js +20 -0
- package/dist/components/composite/customAGGrid/custom-aggrid-sort.d.ts +8 -0
- package/dist/components/composite/customAGGrid/custom-aggrid-sort.js +21 -0
- package/dist/components/composite/customAGGrid/custom-aggrid-types.d.ts +122 -0
- package/dist/components/composite/customAGGrid/custom-aggrid-types.js +60 -0
- package/dist/components/composite/customAGGrid/display-rounding.d.ts +9 -0
- package/dist/components/composite/customAGGrid/display-rounding.js +33 -0
- package/dist/components/composite/customAGGrid/hooks/index.d.ts +7 -0
- package/dist/components/composite/customAGGrid/hooks/index.js +4 -0
- package/dist/components/composite/customAGGrid/hooks/use-custom-aggrid-sort.d.ts +6 -0
- package/dist/components/composite/customAGGrid/hooks/use-custom-aggrid-sort.js +43 -0
- package/dist/components/composite/customAGGrid/index.d.ts +9 -0
- package/dist/components/composite/customAGGrid/index.js +45 -1
- package/dist/components/composite/customAGGrid/separatorCellRenderer.d.ts +1 -1
- package/dist/components/composite/customAGGrid/utils/custom-aggrid-header-utils.d.ts +166 -0
- package/dist/components/composite/customAGGrid/utils/custom-aggrid-header-utils.js +54 -0
- package/dist/components/composite/customAGGrid/utils/index.d.ts +7 -0
- package/dist/components/composite/customAGGrid/utils/index.js +4 -0
- package/dist/components/composite/dnd-table/deletable-table-row.d.ts +1 -1
- package/dist/components/composite/dnd-table/dnd-table-add-rows-dialog.d.ts +1 -1
- package/dist/components/composite/dnd-table/dnd-table-add-rows-dialog.js +1 -0
- package/dist/components/composite/dnd-table/dnd-table-bottom-left-buttons.d.ts +1 -1
- package/dist/components/composite/dnd-table/dnd-table-bottom-right-buttons.d.ts +1 -1
- package/dist/components/composite/dnd-table/dnd-table-row.d.ts +1 -1
- package/dist/components/composite/dnd-table/dnd-table-row.js +2 -1
- package/dist/components/composite/dnd-table/dnd-table.d.ts +1 -1
- package/dist/components/composite/dnd-table/dnd-table.js +1 -0
- package/dist/components/composite/elementSearch/elementItem/EquipmentItem.d.ts +1 -1
- package/dist/components/composite/elementSearch/elementSearchDialog/ElementSearchDialog.d.ts +1 -1
- package/dist/components/composite/elementSearch/elementSearchInput/ElementSearchInput.d.ts +1 -1
- package/dist/components/composite/elementSearch/tagRenderer/TagRenderer.d.ts +1 -1
- package/dist/components/composite/filter/FilterCreationDialog.d.ts +1 -1
- package/dist/components/composite/filter/FilterCreationDialog.js +1 -1
- package/dist/components/composite/filter/FilterForm.d.ts +1 -1
- package/dist/components/composite/filter/HeaderFilterForm.d.ts +1 -1
- package/dist/components/composite/filter/HeaderFilterForm.js +1 -0
- package/dist/components/composite/filter/expert/ExpertFilterEditionDialog.d.ts +1 -1
- package/dist/components/composite/filter/expert/ExpertFilterForm.d.ts +1 -1
- package/dist/components/composite/filter/expert/ExpertFilterForm.js +1 -0
- package/dist/components/composite/filter/expert/expertFilterConstants.js +1 -1
- package/dist/components/composite/filter/expert/expertFilterUtils.js +1 -1
- package/dist/components/composite/filter/explicitNaming/ExplicitNamingFilterEditionDialog.d.ts +1 -1
- package/dist/components/composite/filter/explicitNaming/ExplicitNamingFilterForm.d.ts +1 -1
- package/dist/components/composite/filter/explicitNaming/ExplicitNamingFilterForm.js +1 -0
- package/dist/components/composite/filter/utils/filterApi.js +1 -1
- package/dist/components/composite/flatParameters/FlatParameters.d.ts +1 -1
- package/dist/components/composite/grid/grid-item.d.ts +1 -1
- package/dist/components/composite/grid/grid-section.d.ts +1 -1
- package/dist/components/composite/index.d.ts +1 -0
- package/dist/components/composite/index.js +67 -0
- package/dist/components/composite/muiTable/OverflowableTableCell.d.ts +1 -1
- package/dist/components/composite/muiTable/OverflowableTableCellWithCheckbox.d.ts +1 -1
- package/dist/components/composite/reactQueryBuilder/AddButton.d.ts +1 -1
- package/dist/components/composite/reactQueryBuilder/AutocompleteWithFavorites.d.ts +1 -1
- package/dist/components/composite/reactQueryBuilder/CombinatorSelector.d.ts +1 -1
- package/dist/components/composite/reactQueryBuilder/CountryValueEditor.d.ts +1 -1
- package/dist/components/composite/reactQueryBuilder/CustomReactQueryBuilder.d.ts +1 -1
- package/dist/components/composite/reactQueryBuilder/ElementValueEditor.d.ts +1 -1
- package/dist/components/composite/reactQueryBuilder/FieldSelector.d.ts +1 -1
- package/dist/components/composite/reactQueryBuilder/OperatorSelector.d.ts +1 -1
- package/dist/components/composite/reactQueryBuilder/PropertyValueEditor.d.ts +1 -1
- package/dist/components/composite/reactQueryBuilder/RemoveButton.d.ts +1 -1
- package/dist/components/composite/reactQueryBuilder/TextValueEditor.d.ts +1 -1
- package/dist/components/composite/reactQueryBuilder/TranslatedValueEditor.d.ts +1 -1
- package/dist/components/composite/reactQueryBuilder/ValueEditor.d.ts +1 -1
- package/dist/components/composite/reactQueryBuilder/ValueSelector.d.ts +1 -1
- package/dist/components/composite/reactQueryBuilder/compositeRuleEditor/GroupValueEditor.d.ts +1 -1
- package/dist/components/composite/reactQueryBuilder/compositeRuleEditor/RuleValueEditor.d.ts +1 -1
- package/dist/components/composite/report/QuickSearch.d.ts +14 -0
- package/dist/components/composite/report/QuickSearch.js +118 -0
- package/dist/components/composite/report/index.d.ts +12 -0
- package/dist/components/composite/report/index.js +25 -0
- package/dist/components/composite/report/report-log.mapper.d.ts +2 -0
- package/dist/components/composite/report/report-log.mapper.js +22 -0
- package/dist/components/composite/report/report-severity.d.ts +5 -0
- package/dist/components/composite/report/report-severity.js +89 -0
- package/dist/components/composite/report/report-treeview/hooks/index.d.ts +7 -0
- package/dist/components/composite/report/report-treeview/hooks/index.js +4 -0
- package/dist/components/composite/report/report-treeview/hooks/use-treeview-scroll.d.ts +4 -0
- package/dist/components/composite/report/report-treeview/hooks/use-treeview-scroll.js +19 -0
- package/dist/components/composite/report/report-treeview/index.d.ts +10 -0
- package/dist/components/composite/report/report-treeview/index.js +10 -0
- package/dist/components/composite/report/report-treeview/report-tree.mapper.d.ts +2 -0
- package/dist/components/composite/report/report-treeview/report-tree.mapper.js +16 -0
- package/dist/components/composite/report/report-treeview/treeview-item.d.ts +28 -0
- package/dist/components/composite/report/report-treeview/treeview-item.js +131 -0
- package/dist/components/composite/report/report-treeview/virtualized-treeview.d.ts +11 -0
- package/dist/components/composite/report/report-treeview/virtualized-treeview.js +177 -0
- package/dist/components/composite/report/report-viewer/context/index.d.ts +7 -0
- package/dist/components/composite/report/report-viewer/context/index.js +7 -0
- package/dist/components/composite/report/report-viewer/context/report-viewer-context.d.ts +16 -0
- package/dist/components/composite/report/report-viewer/context/report-viewer-context.js +23 -0
- package/dist/components/composite/report/report-viewer/index.d.ts +9 -0
- package/dist/components/composite/report/report-viewer/index.js +11 -0
- package/dist/components/composite/report/report-viewer/log-table/index.d.ts +7 -0
- package/dist/components/composite/report/report-viewer/log-table/index.js +4 -0
- package/dist/components/composite/report/report-viewer/log-table/log-table.d.ts +12 -0
- package/dist/components/composite/report/report-viewer/log-table/log-table.js +423 -0
- package/dist/components/composite/report/report-viewer/report-viewer.d.ts +8 -0
- package/dist/components/composite/report/report-viewer/report-viewer.js +114 -0
- package/dist/components/composite/report/report.constant.d.ts +8 -0
- package/dist/components/composite/report/report.constant.js +6 -0
- package/dist/components/composite/report/report.styles.d.ts +10 -0
- package/dist/components/composite/report/report.styles.js +12 -0
- package/dist/components/composite/report/report.type.d.ts +66 -0
- package/dist/components/composite/report/report.type.js +8 -0
- package/dist/components/index.js +76 -1
- package/dist/components/ui/addButton/AddButton.d.ts +1 -1
- package/dist/components/ui/checkBoxList/CheckBoxList.d.ts +1 -1
- package/dist/components/ui/checkBoxList/CheckBoxListItem.d.ts +1 -1
- package/dist/components/ui/checkBoxList/CheckBoxListItemContent.d.ts +1 -1
- package/dist/components/ui/checkBoxList/CheckBoxListItems.d.ts +1 -1
- package/dist/components/ui/checkBoxList/DraggableCheckBoxListItem.d.ts +1 -1
- package/dist/components/ui/checkBoxList/DraggableCheckBoxListItemContent.d.ts +1 -1
- package/dist/components/ui/csvDownloader/export-csv-button.d.ts +1 -1
- package/dist/components/ui/csvPicker/csv-picker-confirmation-dialog.d.ts +1 -1
- package/dist/components/ui/csvPicker/csv-picker-confirmation-dialog.js +1 -0
- package/dist/components/ui/csvPicker/csv-picker.d.ts +1 -1
- package/dist/components/ui/dialogs/customMuiDialog/CustomMuiDialog.d.ts +1 -1
- package/dist/components/ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.d.ts +1 -1
- package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.d.ts +1 -1
- package/dist/components/ui/dialogs/elementSaveDialog/ElementSaveDialog.js +1 -0
- package/dist/components/ui/dialogs/modifyElementSelection/ModifyElementSelection.d.ts +1 -1
- package/dist/components/ui/dialogs/multipleSelectionDialog/MultipleSelectionDialog.d.ts +1 -1
- package/dist/components/ui/dialogs/popupConfirmationDialog/PopupConfirmationDialog.d.ts +1 -1
- package/dist/components/ui/directoryItemSelector/DirectoryItemSelector.d.ts +1 -1
- package/dist/components/ui/expandableGroup/ExpandableGroup.d.ts +1 -1
- package/dist/components/ui/icons/ArrowsInputIcon.d.ts +1 -1
- package/dist/components/ui/icons/ArrowsOutputIcon.d.ts +1 -1
- package/dist/components/ui/icons/EditNoteIcon.d.ts +1 -1
- package/dist/components/ui/icons/LeftPanelCloseIcon.d.ts +1 -1
- package/dist/components/ui/icons/LeftPanelOpenIcon.d.ts +1 -1
- package/dist/components/ui/index.js +9 -1
- package/dist/components/ui/inputs/ActivableChip.d.ts +1 -1
- package/dist/components/ui/inputs/SelectClearable.d.ts +1 -1
- package/dist/components/ui/inputs/checkbox-autocomplete/checkbox-autocomplete.d.ts +1 -1
- package/dist/components/ui/inputs/checkbox-autocomplete/checkbox-autocomplete.js +1 -1
- package/dist/components/ui/inputs/checkbox-autocomplete/checkbox-item.d.ts +1 -1
- package/dist/components/ui/inputs/checkbox-autocomplete/virtualized-list-item.d.ts +1 -1
- package/dist/components/ui/menus/custom-nested-menu.d.ts +2 -2
- package/dist/components/ui/menus/custom-nested-menu.js +1 -1
- package/dist/components/ui/overflowableText/OverflowableText.d.ts +2 -2
- package/dist/components/ui/reactHookForm/CheckboxNullableInput.d.ts +1 -1
- package/dist/components/ui/reactHookForm/CountrySelectionInput.d.ts +1 -1
- package/dist/components/ui/reactHookForm/DirectoryItemsInput.d.ts +1 -1
- package/dist/components/ui/reactHookForm/OverflowableChip.d.ts +1 -1
- package/dist/components/ui/reactHookForm/OverflowableChipWithHelperText.d.ts +1 -1
- package/dist/components/ui/reactHookForm/autocompleteInputs/AutocompleteInput.d.ts +1 -1
- package/dist/components/ui/reactHookForm/autocompleteInputs/MultipleAutocompleteInput.d.ts +1 -1
- package/dist/components/ui/reactHookForm/booleans/BooleanInput.d.ts +1 -1
- package/dist/components/ui/reactHookForm/booleans/CheckboxInput.d.ts +1 -1
- package/dist/components/ui/reactHookForm/booleans/RadioInput.d.ts +1 -1
- package/dist/components/ui/reactHookForm/booleans/SwitchInput.d.ts +1 -1
- package/dist/components/ui/reactHookForm/chip-items-input.d.ts +1 -1
- package/dist/components/ui/reactHookForm/constants.d.ts +3 -0
- package/dist/components/ui/reactHookForm/constants.js +6 -0
- package/dist/components/ui/reactHookForm/directory-item-input/directory-item-input.d.ts +5 -0
- package/dist/components/ui/reactHookForm/directory-item-input/directory-item-input.js +66 -0
- package/dist/components/ui/reactHookForm/directory-item-input/directory-item-utils.d.ts +16 -0
- package/dist/components/ui/reactHookForm/directory-item-input/directory-item-utils.js +27 -0
- package/dist/components/ui/reactHookForm/directory-item-input/index.d.ts +8 -0
- package/dist/components/ui/reactHookForm/directory-item-input/index.js +7 -0
- package/dist/components/ui/reactHookForm/errorManagement/ErrorInput.d.ts +1 -1
- package/dist/components/ui/reactHookForm/errorManagement/FieldErrorAlert.d.ts +1 -1
- package/dist/components/ui/reactHookForm/errorManagement/MidFormError.d.ts +1 -1
- package/dist/components/ui/reactHookForm/expandableInput/DeletableRow.d.ts +1 -1
- package/dist/components/ui/reactHookForm/index.d.ts +1 -0
- package/dist/components/ui/reactHookForm/index.js +9 -1
- package/dist/components/ui/reactHookForm/numbers/FloatInput.d.ts +1 -1
- package/dist/components/ui/reactHookForm/numbers/IntegerInput.d.ts +1 -1
- package/dist/components/ui/reactHookForm/numbers/RangeInput.d.ts +1 -1
- package/dist/components/ui/reactHookForm/numbers/SliderInput.d.ts +1 -1
- package/dist/components/ui/reactHookForm/provider/CustomFormProvider.d.ts +1 -1
- package/dist/components/ui/reactHookForm/readOnly/ButtonReadOnlyInput.d.ts +1 -1
- package/dist/components/ui/reactHookForm/readOnly/ReadOnlyInput.d.ts +1 -1
- package/dist/components/ui/reactHookForm/selectInputs/CountriesInput.d.ts +1 -1
- package/dist/components/ui/reactHookForm/selectInputs/EnumInput.d.ts +1 -1
- package/dist/components/ui/reactHookForm/selectInputs/InputWithPopupConfirmation.d.ts +1 -1
- package/dist/components/ui/reactHookForm/selectInputs/MuiSelectInput.d.ts +1 -1
- package/dist/components/ui/reactHookForm/selectInputs/SelectInput.d.ts +1 -1
- package/dist/components/ui/reactHookForm/selectInputs/SelectWithConfirmationInput.d.ts +1 -1
- package/dist/components/ui/reactHookForm/tableInputs/table-numerical-input.d.ts +1 -1
- package/dist/components/ui/reactHookForm/tableInputs/table-text-input.d.ts +1 -1
- package/dist/components/ui/reactHookForm/text/DescriptionField.d.ts +1 -1
- package/dist/components/ui/reactHookForm/text/DescriptionInput.d.ts +1 -1
- package/dist/components/ui/reactHookForm/text/ExpandingTextField.d.ts +1 -1
- package/dist/components/ui/reactHookForm/text/TextInput.d.ts +1 -1
- package/dist/components/ui/reactHookForm/text/UniqueNameInput.d.ts +1 -1
- package/dist/components/ui/reactHookForm/utils/CancelButton.d.ts +1 -1
- package/dist/components/ui/reactHookForm/utils/FieldLabel.d.ts +1 -1
- package/dist/components/ui/reactHookForm/utils/HelperPreviousValue.d.ts +1 -1
- package/dist/components/ui/reactHookForm/utils/SubmitButton.d.ts +1 -1
- package/dist/components/ui/reactHookForm/utils/TextFieldWithAdornment.d.ts +1 -1
- package/dist/components/ui/reactHookForm/utils/functions.d.ts +2 -2
- package/dist/components/ui/resizablePanels/ResizeHandle.d.ts +1 -1
- package/dist/components/ui/snackbarProvider/SnackbarProvider.d.ts +1 -1
- package/dist/components/ui/tablepagination/custom-table-pagination.d.ts +1 -1
- package/dist/components/ui/tooltip/CustomTooltip.d.ts +1 -1
- package/dist/components/ui/treeViewFinder/TreeViewFinder.d.ts +2 -2
- package/dist/features/announcement/AnnouncementBanner.d.ts +1 -1
- package/dist/features/announcement/AnnouncementNotification.d.ts +1 -1
- package/dist/features/authentication/AuthenticationRouter.d.ts +1 -1
- package/dist/features/authentication/AuthenticationRouterErrorDisplay.d.ts +1 -1
- package/dist/features/authentication/Login.d.ts +1 -1
- package/dist/features/authentication/Logout.d.ts +1 -1
- package/dist/features/authentication/SignInCallbackHandler.d.ts +1 -1
- package/dist/features/authentication/SilentRenewCallbackHandler.d.ts +1 -1
- package/dist/features/authentication/alert/ErrorInLogoutAlert.d.ts +1 -1
- package/dist/features/authentication/alert/ErrorInUserValidationAlert.d.ts +1 -1
- package/dist/features/authentication/alert/UnauthorizedAccessAlert.d.ts +1 -1
- package/dist/features/authentication/utils/authService.js +1 -1
- package/dist/features/cardErrorBoundary/CardErrorBoundary.d.ts +1 -1
- package/dist/features/index.js +2 -2
- package/dist/features/network-modification-table/network-modification-table-styles.js +1 -1
- package/dist/features/network-modification-table/network-modifications-table.d.ts +2 -2
- package/dist/features/network-modification-table/renderers/cell-renderers.d.ts +9 -9
- package/dist/features/network-modification-table/renderers/cell-renderers.js +1 -1
- package/dist/features/network-modification-table/renderers/depth-box.d.ts +1 -1
- package/dist/features/network-modification-table/renderers/description-cell.d.ts +1 -1
- package/dist/features/network-modification-table/renderers/drag-handle-cell.d.ts +1 -1
- package/dist/features/network-modification-table/renderers/name-cell.d.ts +2 -1
- package/dist/features/network-modification-table/renderers/name-cell.js +8 -1
- package/dist/features/network-modification-table/renderers/network-modification-node-editor-name-header.d.ts +1 -1
- package/dist/features/network-modification-table/renderers/root-network-chip-cell.d.ts +1 -1
- package/dist/features/network-modification-table/renderers/select-cell.d.ts +2 -1
- package/dist/features/network-modification-table/renderers/select-header-cell.d.ts +2 -1
- package/dist/features/network-modification-table/renderers/switch-cell.d.ts +2 -1
- package/dist/features/network-modification-table/row/drag-row-clone.d.ts +2 -1
- package/dist/features/network-modification-table/row/modification-row.d.ts +2 -1
- package/dist/features/network-modification-table/row/modification-row.js +1 -1
- package/dist/features/network-modifications/battery/creation/BatteryCreationForm.d.ts +1 -1
- package/dist/features/network-modifications/battery/creation/BatteryCreationForm.js +7 -0
- package/dist/features/network-modifications/battery/creation/batteryCreation.utils.js +7 -0
- package/dist/features/network-modifications/battery/modification/BatteryDialogHeader.d.ts +1 -1
- package/dist/features/network-modifications/battery/modification/BatteryDialogHeader.js +7 -0
- package/dist/features/network-modifications/battery/modification/BatteryDialogTabs.d.ts +2 -7
- package/dist/features/network-modifications/battery/modification/BatteryDialogTabs.js +1 -1
- package/dist/features/network-modifications/battery/modification/BatteryDialogTabsContent.d.ts +1 -1
- package/dist/features/network-modifications/battery/modification/BatteryDialogTabsContent.js +7 -0
- package/dist/features/network-modifications/battery/modification/BatteryModificationForm.d.ts +1 -1
- package/dist/features/network-modifications/battery/modification/batteryModification.utils.js +8 -1
- package/dist/features/network-modifications/by-filter/assignment/assignment/assignment-form.d.ts +1 -1
- package/dist/features/network-modifications/by-filter/assignment/assignment/assignment-form.js +2 -1
- package/dist/features/network-modifications/by-filter/assignment/modification-by-assignment-form.d.ts +1 -1
- package/dist/features/network-modifications/by-filter/assignment/modification-by-assignment-form.js +1 -0
- package/dist/features/network-modifications/by-filter/deletion/ByFilterDeletionForm.d.ts +1 -1
- package/dist/features/network-modifications/by-filter/deletion/ByFilterDeletionForm.js +2 -1
- package/dist/features/network-modifications/common/activePowerControl/ActivePowerControlForm.d.ts +1 -1
- package/dist/features/network-modifications/common/activePowerControl/ActivePowerControlForm.js +1 -0
- package/dist/features/network-modifications/common/connectivity/BranchConnectivityForm.d.ts +1 -1
- package/dist/features/network-modifications/common/connectivity/ConnectivityForm.d.ts +1 -1
- package/dist/features/network-modifications/common/connectivity/ConnectivityForm.js +1 -0
- package/dist/features/network-modifications/common/connectivity/PositionForm.d.ts +1 -1
- package/dist/features/network-modifications/common/connectivity/PositionForm.js +1 -0
- package/dist/features/network-modifications/common/connectivity/VoltageLevelConnectivityForm.d.ts +1 -1
- package/dist/features/network-modifications/common/connectivity/VoltageLevelConnectivityForm.js +1 -0
- package/dist/features/network-modifications/common/measurements/BranchActiveReactivePowerMeasurementsForm.d.ts +1 -1
- package/dist/features/network-modifications/common/measurements/BusbarSectionVoltageMeasurementsForm.d.ts +1 -1
- package/dist/features/network-modifications/common/measurements/BusbarSectionVoltageMeasurementsForm.js +7 -0
- package/dist/features/network-modifications/common/measurements/PowerMeasurementsForm.d.ts +1 -1
- package/dist/features/network-modifications/common/measurements/PowerWithValidityForm.d.ts +1 -1
- package/dist/features/network-modifications/common/measurements/PowerWithValidityForm.js +1 -0
- package/dist/features/network-modifications/common/measurements/branchActiveReactivePowerForm.utils.js +1 -1
- package/dist/features/network-modifications/common/properties/PropertiesForm.d.ts +1 -1
- package/dist/features/network-modifications/common/properties/PropertiesForm.js +1 -0
- package/dist/features/network-modifications/common/properties/PropertyForm.d.ts +1 -1
- package/dist/features/network-modifications/common/properties/PropertyForm.js +1 -0
- package/dist/features/network-modifications/common/reactiveLimits/ReactiveLimitsForm.d.ts +1 -1
- package/dist/features/network-modifications/common/reactiveLimits/ReactiveLimitsForm.js +1 -0
- package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveRowForm.d.ts +1 -1
- package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveRowForm.js +1 -0
- package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveTableForm.d.ts +1 -1
- package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveTableForm.js +1 -0
- package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/reactiveCapability.utils.js +1 -1
- package/dist/features/network-modifications/common/reactiveLimits/reactiveLimits.utils.js +1 -1
- package/dist/features/network-modifications/common/regulatingTerminal/RegulatingTerminalForm.d.ts +1 -1
- package/dist/features/network-modifications/common/regulatingTerminal/RegulatingTerminalForm.js +1 -0
- package/dist/features/network-modifications/common/setpoints/SetPointsForm.d.ts +1 -1
- package/dist/features/network-modifications/common/setpoints/SetPointsForm.js +1 -0
- package/dist/features/network-modifications/common/shortCircuit/ShortCircuitForm.d.ts +1 -1
- package/dist/features/network-modifications/common/shortCircuit/ShortCircuitForm.js +1 -0
- package/dist/features/network-modifications/common/voltageRegulation/VoltageRegulationForm.d.ts +1 -1
- package/dist/features/network-modifications/common/voltageRegulation/VoltageRegulationForm.js +1 -0
- package/dist/features/network-modifications/common/voltageRegulation/voltageRegulation.utils.js +1 -1
- package/dist/features/network-modifications/equipmentDeletion/EquipmentDeletionForm.d.ts +1 -1
- package/dist/features/network-modifications/equipmentDeletion/EquipmentDeletionForm.js +7 -0
- package/dist/features/network-modifications/equipmentDeletion/equipmentDeletion.utils.js +1 -0
- package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/HvdcLccDeletionSpecificForm.d.ts +1 -1
- package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/ShuntCompensatorSelectionForm.d.ts +1 -1
- package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/ShuntCompensatorSelectionForm.js +1 -0
- package/dist/features/network-modifications/equipmentDeletion/hvdcLccDeletion/hvdcLccDeletion.utils.js +1 -1
- package/dist/features/network-modifications/generator/creation/GeneratorCreationForm.d.ts +1 -1
- package/dist/features/network-modifications/generator/creation/GeneratorCreationForm.js +7 -0
- package/dist/features/network-modifications/generator/creation/generatorCreation.utils.js +8 -1
- package/dist/features/network-modifications/generator/modification/GeneratorDialogHeader.d.ts +1 -1
- package/dist/features/network-modifications/generator/modification/GeneratorDialogHeader.js +7 -0
- package/dist/features/network-modifications/generator/modification/GeneratorDialogTabs.d.ts +2 -7
- package/dist/features/network-modifications/generator/modification/GeneratorDialogTabs.js +1 -1
- package/dist/features/network-modifications/generator/modification/GeneratorDialogTabsContent.d.ts +1 -1
- package/dist/features/network-modifications/generator/modification/GeneratorDialogTabsContent.js +7 -0
- package/dist/features/network-modifications/generator/modification/GeneratorModificationForm.d.ts +1 -1
- package/dist/features/network-modifications/generator/modification/generatorModification.utils.js +8 -1
- package/dist/features/network-modifications/index.js +1 -0
- package/dist/features/network-modifications/load/common/LoadDialogHeader.d.ts +1 -1
- package/dist/features/network-modifications/load/common/LoadDialogHeader.js +7 -0
- package/dist/features/network-modifications/load/common/LoadDialogTabs.d.ts +2 -7
- package/dist/features/network-modifications/load/common/LoadDialogTabs.js +1 -1
- package/dist/features/network-modifications/load/common/LoadDialogTabsContent.d.ts +1 -1
- package/dist/features/network-modifications/load/common/LoadForm.d.ts +1 -1
- package/dist/features/network-modifications/load/creation/loadCreation.utils.js +1 -0
- package/dist/features/network-modifications/load/modification/loadModification.utils.js +7 -0
- package/dist/features/network-modifications/shunt-compensator/common/CharacteristicsForm.d.ts +1 -1
- package/dist/features/network-modifications/shunt-compensator/common/CharacteristicsForm.js +1 -0
- package/dist/features/network-modifications/shunt-compensator/common/characteristicsForm.utils.js +1 -1
- package/dist/features/network-modifications/shunt-compensator/creation/ShuntCompensatorCreationForm.d.ts +1 -1
- package/dist/features/network-modifications/shunt-compensator/creation/ShuntCompensatorCreationForm.js +7 -0
- package/dist/features/network-modifications/shunt-compensator/creation/shuntCompensatorCreation.utils.js +7 -0
- package/dist/features/network-modifications/shunt-compensator/modification/ShuntCompensatorModificationForm.d.ts +1 -1
- package/dist/features/network-modifications/shunt-compensator/modification/ShuntCompensatorModificationForm.js +7 -0
- package/dist/features/network-modifications/shunt-compensator/modification/shuntCompensatorModification.utils.js +7 -0
- package/dist/features/network-modifications/substation/creation/SubstationCreationForm.d.ts +1 -1
- package/dist/features/network-modifications/substation/creation/SubstationCreationForm.js +7 -0
- package/dist/features/network-modifications/substation/creation/substationCreation.utils.js +1 -1
- package/dist/features/network-modifications/substation/modification/SubstationModificationForm.d.ts +1 -1
- package/dist/features/network-modifications/substation/modification/SubstationModificationForm.js +7 -0
- package/dist/features/network-modifications/substation/modification/substationModification.utils.js +1 -1
- package/dist/features/network-modifications/voltageLevel/creation/VoltageLevelCreationForm.d.ts +1 -1
- package/dist/features/network-modifications/voltageLevel/creation/VoltageLevelCreationForm.js +8 -1
- package/dist/features/network-modifications/voltageLevel/creation/index.js +7 -0
- package/dist/features/network-modifications/voltageLevel/creation/tabs/characteristicsTab/CharacteristicsTab.d.ts +1 -1
- package/dist/features/network-modifications/voltageLevel/creation/tabs/characteristicsTab/CharacteristicsTab.js +1 -0
- package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/StructureTab.d.ts +1 -1
- package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/StructureTab.js +1 -0
- package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/couplingOmnibus/CouplingOmnibusCreation.d.ts +1 -1
- package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/couplingOmnibus/CouplingOmnibusForm.d.ts +1 -1
- package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/couplingOmnibus/CouplingOmnibusForm.js +1 -0
- package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/SwitchesBetweenSections.d.ts +1 -1
- package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/switchesBetweenSections/SwitchesBetweenSections.js +1 -0
- package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationCreationSection.d.ts +1 -1
- package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationCreationSection.js +7 -0
- package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationTab.d.ts +1 -1
- package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationTab.js +1 -0
- package/dist/features/network-modifications/voltageLevel/creation/voltageLevelCreation.utils.js +10 -3
- package/dist/features/network-modifications/voltageLevel/index.js +7 -0
- package/dist/features/network-modifications/voltageLevel/modification/VoltageLevelModificationForm.d.ts +1 -1
- package/dist/features/network-modifications/voltageLevel/modification/VoltageLevelModificationForm.js +8 -1
- package/dist/features/network-modifications/voltageLevel/modification/voltageLevelModification.utils.js +3 -3
- package/dist/features/node/build-status-chip.d.ts +1 -1
- package/dist/features/notifications/NotificationsProvider.d.ts +1 -1
- package/dist/features/parameters/common/ProviderParam.d.ts +1 -1
- package/dist/features/parameters/common/ProviderParam.js +1 -0
- package/dist/features/parameters/common/computing-type.d.ts +1 -19
- package/dist/features/parameters/common/computing-type.js +16 -26
- package/dist/features/parameters/common/contingency-table/columns-definitions.js +1 -0
- package/dist/features/parameters/common/index.js +1 -2
- package/dist/features/parameters/common/limitreductions/columns-definitions.d.ts +2 -2
- package/dist/features/parameters/common/limitreductions/limit-reduction-table-cell.d.ts +1 -1
- package/dist/features/parameters/common/limitreductions/limit-reduction-table-cell.js +1 -0
- package/dist/features/parameters/common/limitreductions/limit-reduction-table-row.d.ts +1 -1
- package/dist/features/parameters/common/limitreductions/limit-reductions-label-column.d.ts +1 -1
- package/dist/features/parameters/common/limitreductions/limit-reductions-table-form.d.ts +1 -1
- package/dist/features/parameters/common/limitreductions/limit-reductions-table-form.js +1 -0
- package/dist/features/parameters/common/limitreductions/limit-reductions-tooltip-column.d.ts +1 -1
- package/dist/features/parameters/common/line-separator.d.ts +1 -1
- package/dist/features/parameters/common/name-element-editor/name-element-editor-form.d.ts +1 -1
- package/dist/features/parameters/common/name-element-editor/name-element-editor-utils.js +1 -0
- package/dist/features/parameters/common/parameter-field.d.ts +1 -1
- package/dist/features/parameters/common/parameter-field.js +1 -0
- package/dist/features/parameters/common/parameter-table-field/parameter-table-field.d.ts +1 -1
- package/dist/features/parameters/common/parameter-table-field/parameter-table-field.js +1 -0
- package/dist/features/parameters/common/parameters-creation-dialog.d.ts +1 -1
- package/dist/features/parameters/common/parameters.d.ts +3 -3
- package/dist/features/parameters/common/voltage-level-table/custom-voltage-level-table-cell.d.ts +1 -1
- package/dist/features/parameters/common/voltage-level-table/custom-voltage-level-table-cell.js +1 -0
- package/dist/features/parameters/common/voltage-level-table/custom-voltage-level-table-row.d.ts +1 -1
- package/dist/features/parameters/common/voltage-level-table/custom-voltage-level-table.d.ts +1 -1
- package/dist/features/parameters/common/widget/parameter-float.d.ts +1 -1
- package/dist/features/parameters/common/widget/parameter-float.js +1 -0
- package/dist/features/parameters/common/widget/parameter-group.d.ts +1 -1
- package/dist/features/parameters/common/widget/parameter-line-directory-items-input.d.ts +2 -2
- package/dist/features/parameters/common/widget/parameter-line-directory-items-input.js +2 -1
- package/dist/features/parameters/common/widget/parameter-line-slider.d.ts +1 -1
- package/dist/features/parameters/common/widget/parameter-line-slider.js +1 -0
- package/dist/features/parameters/common/widget/parameter-switch.d.ts +1 -1
- package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-form.d.ts +1 -1
- package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-form.js +1 -0
- package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-inline.d.ts +2 -2
- package/dist/features/parameters/dynamic-margin-calculation/dynamic-margin-calculation-inline.js +1 -0
- package/dist/features/parameters/dynamic-margin-calculation/loads-variations-parameters.d.ts +1 -1
- package/dist/features/parameters/dynamic-margin-calculation/loads-variations-parameters.js +1 -0
- package/dist/features/parameters/dynamic-margin-calculation/time-delay-parameters.d.ts +1 -1
- package/dist/features/parameters/dynamic-margin-calculation/use-dynamic-margin-calculation-parameters-form.js +1 -0
- package/dist/features/parameters/dynamic-security-analysis/contingency-parameters.d.ts +1 -1
- package/dist/features/parameters/dynamic-security-analysis/contingency-parameters.js +3 -2
- package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-inline.d.ts +2 -2
- package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-inline.js +1 -0
- package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.d.ts +1 -1
- package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.js +3 -2
- package/dist/features/parameters/dynamic-security-analysis/scenario-parameters.d.ts +1 -1
- package/dist/features/parameters/dynamic-security-analysis/use-dynamic-security-analysis-parameters-form.js +1 -0
- package/dist/features/parameters/dynamic-simulation/curve/common/checkbox-select.d.ts +1 -1
- package/dist/features/parameters/dynamic-simulation/curve/common/checkbox-treeview.d.ts +2 -2
- package/dist/features/parameters/dynamic-simulation/curve/common/checkbox-treeview.js +2 -4
- package/dist/features/parameters/dynamic-simulation/curve/common/grid-buttons.d.ts +1 -1
- package/dist/features/parameters/dynamic-simulation/curve/curve-parameters.d.ts +1 -1
- package/dist/features/parameters/dynamic-simulation/curve/curve-parameters.js +8 -3
- package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-preview.js +6 -0
- package/dist/features/parameters/dynamic-simulation/curve/dialog/curve-selector-dialog.d.ts +1 -1
- package/dist/features/parameters/dynamic-simulation/curve/dialog/equipment-filter.js +2 -0
- package/dist/features/parameters/dynamic-simulation/dynamic-simulation-inline.d.ts +2 -3
- package/dist/features/parameters/dynamic-simulation/dynamic-simulation-inline.js +5 -3
- package/dist/features/parameters/dynamic-simulation/dynamic-simulation-parameters-form.d.ts +1 -1
- package/dist/features/parameters/dynamic-simulation/dynamic-simulation-parameters-form.js +3 -2
- package/dist/features/parameters/dynamic-simulation/mapping/mapping-parameters-utils.d.ts +6 -3
- package/dist/features/parameters/dynamic-simulation/mapping/mapping-parameters-utils.js +40 -2
- package/dist/features/parameters/dynamic-simulation/mapping/mapping-parameters.d.ts +1 -1
- package/dist/features/parameters/dynamic-simulation/mapping/mapping-parameters.js +39 -36
- package/dist/features/parameters/dynamic-simulation/network/network-parameters.d.ts +1 -1
- package/dist/features/parameters/dynamic-simulation/solver/common-solver/common-solver-parameters.d.ts +1 -1
- package/dist/features/parameters/dynamic-simulation/solver/ida-solver/ida-solver-parameters.d.ts +1 -1
- package/dist/features/parameters/dynamic-simulation/solver/sim-solver/simplified-solver-parameters.d.ts +1 -1
- package/dist/features/parameters/dynamic-simulation/solver/solver-parameters.d.ts +1 -1
- package/dist/features/parameters/dynamic-simulation/time-delay/time-delay-parameters.d.ts +1 -1
- package/dist/features/parameters/dynamic-simulation/use-dynamic-simulation-parameters-form.d.ts +3 -3
- package/dist/features/parameters/dynamic-simulation/use-dynamic-simulation-parameters-form.js +11 -10
- package/dist/features/parameters/index.js +1 -2
- package/dist/features/parameters/loadflow/load-flow-general-parameters.d.ts +1 -1
- package/dist/features/parameters/loadflow/load-flow-general-parameters.js +1 -0
- package/dist/features/parameters/loadflow/load-flow-parameters-content.d.ts +1 -1
- package/dist/features/parameters/loadflow/load-flow-parameters-content.js +4 -3
- package/dist/features/parameters/loadflow/load-flow-parameters-dialog.d.ts +1 -1
- package/dist/features/parameters/loadflow/load-flow-parameters-dialog.js +7 -11
- package/dist/features/parameters/loadflow/load-flow-parameters-form.d.ts +1 -1
- package/dist/features/parameters/loadflow/load-flow-parameters-form.js +1 -0
- package/dist/features/parameters/loadflow/load-flow-parameters-header.d.ts +1 -1
- package/dist/features/parameters/loadflow/load-flow-parameters-header.js +1 -0
- package/dist/features/parameters/loadflow/load-flow-parameters-inline.d.ts +2 -3
- package/dist/features/parameters/loadflow/load-flow-parameters-inline.js +1 -0
- package/dist/features/parameters/loadflow/load-flow-parameters-provider.d.ts +1 -1
- package/dist/features/parameters/loadflow/load-flow-parameters-utils.js +7 -6
- package/dist/features/parameters/loadflow/use-load-flow-parameters-form.d.ts +1 -2
- package/dist/features/parameters/loadflow/use-load-flow-parameters-form.js +5 -4
- package/dist/features/parameters/network-visualizations/map-parameters.d.ts +1 -1
- package/dist/features/parameters/network-visualizations/map-parameters.js +3 -2
- package/dist/features/parameters/network-visualizations/network-area-diagram-parameters.d.ts +1 -1
- package/dist/features/parameters/network-visualizations/network-area-diagram-parameters.js +1 -0
- package/dist/features/parameters/network-visualizations/network-visualizations-form.d.ts +1 -1
- package/dist/features/parameters/network-visualizations/network-visualizations-form.js +1 -0
- package/dist/features/parameters/network-visualizations/network-visualizations-parameters-dialog.d.ts +1 -1
- package/dist/features/parameters/network-visualizations/network-visualizations-parameters-dialog.js +1 -0
- package/dist/features/parameters/network-visualizations/network-visualizations-parameters-inline.d.ts +1 -1
- package/dist/features/parameters/network-visualizations/network-visualizations-parameters-inline.js +1 -0
- package/dist/features/parameters/network-visualizations/single-line-diagram-parameters.d.ts +1 -1
- package/dist/features/parameters/network-visualizations/single-line-diagram-parameters.js +3 -2
- package/dist/features/parameters/network-visualizations/use-network-visualizations-parameters-form.js +1 -0
- package/dist/features/parameters/pcc-min/pcc-min-form-utils.js +1 -0
- package/dist/features/parameters/pcc-min/pcc-min-parameters-dialog.d.ts +1 -1
- package/dist/features/parameters/pcc-min/pcc-min-parameters-dialog.js +1 -0
- package/dist/features/parameters/pcc-min/pcc-min-parameters-form.d.ts +1 -1
- package/dist/features/parameters/pcc-min/pcc-min-parameters-form.js +1 -0
- package/dist/features/parameters/pcc-min/pcc-min-parameters-inline.d.ts +1 -1
- package/dist/features/parameters/pcc-min/pcc-min-parameters-inline.js +1 -0
- package/dist/features/parameters/pcc-min/use-pcc-min-parameters-form.js +1 -0
- package/dist/features/parameters/security-analysis/columns-definitions.js +7 -6
- package/dist/features/parameters/security-analysis/security-analysis-parameters-dialog.d.ts +1 -1
- package/dist/features/parameters/security-analysis/security-analysis-parameters-dialog.js +11 -15
- package/dist/features/parameters/security-analysis/security-analysis-parameters-form.d.ts +1 -1
- package/dist/features/parameters/security-analysis/security-analysis-parameters-form.js +1 -0
- package/dist/features/parameters/security-analysis/security-analysis-parameters-inline.d.ts +2 -3
- package/dist/features/parameters/security-analysis/security-analysis-parameters-inline.js +1 -0
- package/dist/features/parameters/security-analysis/security-analysis-parameters-selector.d.ts +1 -1
- package/dist/features/parameters/security-analysis/security-analysis-parameters-selector.js +2 -1
- package/dist/features/parameters/security-analysis/security-analysis-violations-hiding.d.ts +1 -1
- package/dist/features/parameters/security-analysis/security-analysis-violations-hiding.js +1 -0
- package/dist/features/parameters/security-analysis/use-security-analysis-parameters-form.d.ts +2 -2
- package/dist/features/parameters/security-analysis/use-security-analysis-parameters-form.js +1 -0
- package/dist/features/parameters/sensi/columns-definitions.d.ts +6 -6
- package/dist/features/parameters/sensi/columns-definitions.js +1 -0
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-dialog.d.ts +1 -1
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-dialog.js +6 -10
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-factor-count.d.ts +1 -1
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-form.d.ts +1 -1
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-form.js +1 -0
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-inline.d.ts +2 -3
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-inline.js +1 -0
- package/dist/features/parameters/sensi/sensitivity-parameters-fields.d.ts +1 -1
- package/dist/features/parameters/sensi/sensitivity-parameters-fields.js +1 -0
- package/dist/features/parameters/sensi/sensitivity-parameters-selector.d.ts +1 -1
- package/dist/features/parameters/sensi/sensitivity-parameters-selector.js +2 -1
- package/dist/features/parameters/sensi/use-sensitivity-analysis-parameters.d.ts +1 -2
- package/dist/features/parameters/sensi/use-sensitivity-analysis-parameters.js +1 -0
- package/dist/features/parameters/sensi/utils.js +1 -0
- package/dist/features/parameters/short-circuit/short-circuit-general-tab-panel.js +1 -0
- package/dist/features/parameters/short-circuit/short-circuit-icc-cluster-table-cell.d.ts +1 -1
- package/dist/features/parameters/short-circuit/short-circuit-icc-cluster-table-cell.js +2 -1
- package/dist/features/parameters/short-circuit/short-circuit-icc-cluster-table-row.d.ts +1 -1
- package/dist/features/parameters/short-circuit/short-circuit-icc-cluster-table.d.ts +1 -1
- package/dist/features/parameters/short-circuit/short-circuit-icc-material-table-cell.d.ts +1 -1
- package/dist/features/parameters/short-circuit/short-circuit-icc-material-table-cell.js +1 -0
- package/dist/features/parameters/short-circuit/short-circuit-icc-material-table-row.d.ts +1 -1
- package/dist/features/parameters/short-circuit/short-circuit-icc-material-table.d.ts +1 -1
- package/dist/features/parameters/short-circuit/short-circuit-parameters-content.d.ts +1 -1
- package/dist/features/parameters/short-circuit/short-circuit-parameters-content.js +2 -1
- package/dist/features/parameters/short-circuit/short-circuit-parameters-dialog.d.ts +1 -1
- package/dist/features/parameters/short-circuit/short-circuit-parameters-dialog.js +2 -6
- package/dist/features/parameters/short-circuit/short-circuit-parameters-form.d.ts +1 -1
- package/dist/features/parameters/short-circuit/short-circuit-parameters-form.js +1 -0
- package/dist/features/parameters/short-circuit/short-circuit-parameters-inline.d.ts +2 -3
- package/dist/features/parameters/short-circuit/short-circuit-parameters-inline.js +1 -0
- package/dist/features/parameters/short-circuit/short-circuit-parameters-utils.js +8 -7
- package/dist/features/parameters/short-circuit/short-circuit-power-electronics-tab-panel.js +3 -2
- package/dist/features/parameters/short-circuit/short-circuit-study-area-tab-panel.js +4 -3
- package/dist/features/parameters/short-circuit/short-circuit-voltage-table.d.ts +1 -1
- package/dist/features/parameters/short-circuit/use-short-circuit-parameters-form.d.ts +1 -2
- package/dist/features/parameters/short-circuit/use-short-circuit-parameters-form.js +1 -0
- package/dist/features/parameters/voltage-init/equipment-selection-parameters.d.ts +1 -1
- package/dist/features/parameters/voltage-init/equipment-selection-parameters.js +1 -0
- package/dist/features/parameters/voltage-init/general-parameters.d.ts +1 -1
- package/dist/features/parameters/voltage-init/general-parameters.js +4 -3
- package/dist/features/parameters/voltage-init/use-voltage-init-parameters-form.js +1 -0
- package/dist/features/parameters/voltage-init/voltage-init-form-utils.js +3 -2
- package/dist/features/parameters/voltage-init/voltage-init-parameters-dialog.d.ts +1 -1
- package/dist/features/parameters/voltage-init/voltage-init-parameters-dialog.js +1 -0
- package/dist/features/parameters/voltage-init/voltage-init-parameters-form.d.ts +1 -1
- package/dist/features/parameters/voltage-init/voltage-init-parameters-form.js +2 -1
- package/dist/features/parameters/voltage-init/voltage-init-parameters-inline.d.ts +1 -1
- package/dist/features/parameters/voltage-init/voltage-init-parameters-inline.js +1 -0
- package/dist/features/parameters/voltage-init/voltage-limits-parameters.d.ts +1 -1
- package/dist/features/parameters/voltage-init/voltage-limits-parameters.js +1 -0
- package/dist/features/process-configs/security-analysis/update-sa-process-config-dialog.d.ts +1 -1
- package/dist/features/process-configs/security-analysis/update-sa-process-config-dialog.js +7 -0
- package/dist/features/process-configs/security-analysis/update-sa-process-config.d.ts +1 -1
- package/dist/features/process-configs/security-analysis/update-sa-process-config.js +3 -0
- package/dist/features/process-configs/update-process-config-modifications.d.ts +1 -1
- package/dist/features/process-configs/update-process-config-modifications.js +8 -1
- package/dist/features/results/securityanalysis/security-analysis-result-nmk.d.ts +1 -1
- package/dist/features/results/securityanalysis/security-analysis-result-nmk.js +7 -0
- package/dist/features/results/securityanalysis/security-analysis-table.d.ts +1 -1
- package/dist/features/results/securityanalysis/security-analysis-table.js +7 -0
- package/dist/features/topBar/AboutDialog.d.ts +1 -1
- package/dist/features/topBar/AboutDialog.js +1 -1
- package/dist/features/topBar/DevModeBanner.d.ts +1 -1
- package/dist/features/topBar/GridLogo.d.ts +2 -2
- package/dist/features/topBar/GridLogo.js +1 -1
- package/dist/features/topBar/TopBar.d.ts +1 -1
- package/dist/features/topBar/UserInformationDialog.d.ts +1 -1
- package/dist/features/topBar/UserInformationDialog.js +39 -14
- package/dist/features/topBar/UserSettingsDialog.d.ts +1 -1
- package/dist/hooks/use-parameters-backend.d.ts +1 -1
- package/dist/hooks/use-stable-computed-array.d.ts +2 -0
- package/dist/hooks/use-stable-computed-array.js +16 -0
- package/dist/hooks/useModificationLabelComputer.d.ts +4 -4
- package/dist/index.js +85 -8
- package/dist/services/dynamic-mapping.d.ts +2 -3
- package/dist/services/dynamic-mapping.js +3 -10
- package/dist/services/index.js +1 -2
- package/dist/services/networkModification.js +1 -1
- package/dist/services/security-analysis.js +1 -1
- package/dist/services/sensitivity-analysis.js +1 -1
- package/dist/translations/en/businessErrorsEn.d.ts +1 -1
- package/dist/translations/en/businessErrorsEn.js +1 -1
- package/dist/translations/en/topBarEn.d.ts +12 -0
- package/dist/translations/en/topBarEn.js +13 -1
- package/dist/translations/fr/businessErrorsFr.d.ts +1 -1
- package/dist/translations/fr/businessErrorsFr.js +1 -1
- package/dist/translations/fr/topBarFr.d.ts +12 -0
- package/dist/translations/fr/topBarFr.js +13 -1
- package/dist/utils/constants/adornments.js +1 -1
- package/dist/utils/index.js +6 -2
- package/dist/utils/mapper/getFileIcon.d.ts +1 -1
- package/dist/utils/mapper/getFileIcon.js +3 -1
- package/dist/utils/rounding.d.ts +20 -0
- package/dist/utils/rounding.js +26 -0
- package/dist/utils/store-sort-filter-fields.d.ts +38 -0
- package/dist/utils/store-sort-filter-fields.js +66 -0
- package/dist/utils/styles.d.ts +1 -1
- package/dist/utils/ts-utils.d.ts +1 -0
- package/dist/utils/ts-utils.js +7 -0
- package/dist/utils/types/computing-type.d.ts +19 -0
- package/dist/utils/types/computing-type.js +17 -0
- package/dist/utils/types/dynamic-margin-calculation.type.d.ts +2 -5
- package/dist/utils/types/dynamic-simulation.type.d.ts +6 -4
- package/dist/utils/types/dynamic-simulation.type.js +10 -1
- package/dist/utils/types/elementType.d.ts +2 -2
- package/dist/utils/types/elementType.js +1 -1
- package/dist/utils/types/index.d.ts +1 -0
- package/dist/utils/types/index.js +4 -1
- package/dist/utils/types/parameters.type.d.ts +3 -3
- package/dist/utils/types/types.d.ts +11 -0
- package/package.json +2 -1
|
@@ -0,0 +1,423 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { memo, useState, useRef, useMemo, useEffect, useCallback } from "react";
|
|
3
|
+
import { useIntl } from "react-intl";
|
|
4
|
+
import { useTheme, Box, Chip, alpha } from "@mui/material";
|
|
5
|
+
import { Visibility, VisibilityOff } from "@mui/icons-material";
|
|
6
|
+
import { getDefaultSeverityFilter, REPORT_SEVERITY } from "../../report-severity.js";
|
|
7
|
+
import { QuickSearch } from "../../QuickSearch.js";
|
|
8
|
+
import { reportStyles } from "../../report.styles.js";
|
|
9
|
+
import { useReportFetcherContext, useReportFilterContext } from "../context/report-viewer-context.js";
|
|
10
|
+
import { CustomAGGrid } from "../../../customAGGrid/customAggrid.js";
|
|
11
|
+
import "../../../../../utils/conversionUtils.js";
|
|
12
|
+
import "../../../../../utils/types/equipmentType.js";
|
|
13
|
+
import { MessageLogCellRenderer } from "../../../customAGGrid/cell-renderers.js";
|
|
14
|
+
import "../../../customAGGrid/context/custom-aggrid-context.js";
|
|
15
|
+
import "localized-countries";
|
|
16
|
+
import "localized-countries/data/fr";
|
|
17
|
+
import "localized-countries/data/en";
|
|
18
|
+
import "notistack";
|
|
19
|
+
import { FilterTextComparators, FilterDataTypes, TableType } from "../../../customAGGrid/custom-aggrid-types.js";
|
|
20
|
+
import "mathjs";
|
|
21
|
+
import { CustomAggridComparatorFilter } from "../../../customAGGrid/custom-aggrid-filters/custom-aggrid-comparator-filter.js";
|
|
22
|
+
import { makeAgGridCustomHeaderColumn } from "../../../customAGGrid/utils/custom-aggrid-header-utils.js";
|
|
23
|
+
import { AGGRID_LOCALES } from "../../../../../translations/not-intl/aggrid-locales.js";
|
|
24
|
+
import { useStableComputedArray } from "../../../../../hooks/use-stable-computed-array.js";
|
|
25
|
+
import "../../../../ui/overflowableText/OverflowableText.js";
|
|
26
|
+
import "react-hook-form";
|
|
27
|
+
import "../../../../ui/reactHookForm/provider/CustomFormProvider.js";
|
|
28
|
+
import "yup";
|
|
29
|
+
import "../../../../ui/treeViewFinder/TreeViewFinder.js";
|
|
30
|
+
import "../../../../ui/reactHookForm/numbers/RangeInput.js";
|
|
31
|
+
import "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
|
|
32
|
+
import "@material-symbols/svg-400/outlined/arrows_output.svg?react";
|
|
33
|
+
import "@material-symbols/svg-400/outlined/arrows_input.svg?react";
|
|
34
|
+
import "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
|
|
35
|
+
import "@material-symbols/svg-400/outlined/add_notes.svg?react";
|
|
36
|
+
import "../../../../ui/dialogs/descriptionModificationDialog/DescriptionModificationDialog.js";
|
|
37
|
+
import "../../../../ui/reactHookForm/expandableInput/ExpandableInput.js";
|
|
38
|
+
import "../../../../ui/reactHookForm/directory-item-input/directory-item-utils.js";
|
|
39
|
+
import "@hello-pangea/dnd";
|
|
40
|
+
import "../../../../ui/dialogs/elementSaveDialog/ElementSaveDialog.js";
|
|
41
|
+
import "../../../../ui/snackbarProvider/SnackbarProvider.js";
|
|
42
|
+
import "mui-nested-menu";
|
|
43
|
+
import "react-resizable-panels";
|
|
44
|
+
import "react-papaparse";
|
|
45
|
+
import { CustomTablePagination } from "../../../../ui/tablepagination/custom-table-pagination.js";
|
|
46
|
+
const getColumnFilterValue = (array, columnName) => array?.find((item) => item.column === columnName)?.value ?? null;
|
|
47
|
+
const applyFiltersToGrid = (api, filters) => {
|
|
48
|
+
if (!filters?.length) {
|
|
49
|
+
api.setFilterModel(null);
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
const model = {};
|
|
53
|
+
filters.forEach((f) => {
|
|
54
|
+
if (Array.isArray(f.value)) {
|
|
55
|
+
model[f.column] = { type: "text", filterType: "customInRange", filter: f.value };
|
|
56
|
+
} else {
|
|
57
|
+
model[f.column] = { type: f.type, filterType: f.dataType, filter: f.value };
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
api.setFilterModel(model);
|
|
61
|
+
api.onFilterChanged();
|
|
62
|
+
};
|
|
63
|
+
const chipStyle = (severity, severityFilter, theme) => ({
|
|
64
|
+
backgroundColor: severityFilter.includes(severity) ? REPORT_SEVERITY[severity].colorHexCode : theme.severityChip?.disabledColor ?? theme.palette.action.disabledBackground,
|
|
65
|
+
cursor: "pointer",
|
|
66
|
+
border: `1px solid ${theme.palette.divider}`,
|
|
67
|
+
"&:hover": {
|
|
68
|
+
backgroundColor: alpha(REPORT_SEVERITY[severity].colorHexCode, 0.5)
|
|
69
|
+
},
|
|
70
|
+
"& .MuiChip-deleteIcon": {
|
|
71
|
+
color: theme.palette.text.primary,
|
|
72
|
+
fontSize: "1rem"
|
|
73
|
+
},
|
|
74
|
+
"& .MuiChip-deleteIcon:hover": {
|
|
75
|
+
color: theme.palette.text.primary
|
|
76
|
+
},
|
|
77
|
+
padding: 0.5
|
|
78
|
+
});
|
|
79
|
+
const styles = {
|
|
80
|
+
chipContainer: (theme) => ({
|
|
81
|
+
display: "flex",
|
|
82
|
+
flexWrap: "wrap",
|
|
83
|
+
gap: theme.spacing(1)
|
|
84
|
+
}),
|
|
85
|
+
toolContainer: (theme) => ({
|
|
86
|
+
display: "flex",
|
|
87
|
+
flexDirection: "column",
|
|
88
|
+
gap: theme.spacing(1),
|
|
89
|
+
mb: theme.spacing(2)
|
|
90
|
+
})
|
|
91
|
+
};
|
|
92
|
+
const SEVERITY_COLUMN_FIXED_WIDTH = 115;
|
|
93
|
+
const PAGE_OPTIONS = [15, 30, 50, 100];
|
|
94
|
+
function LogTable({
|
|
95
|
+
selectedReport,
|
|
96
|
+
reportType,
|
|
97
|
+
severities,
|
|
98
|
+
onRowClick,
|
|
99
|
+
onFiltersChanged,
|
|
100
|
+
resetFilters = false
|
|
101
|
+
}) {
|
|
102
|
+
const intl = useIntl();
|
|
103
|
+
const theme = useTheme();
|
|
104
|
+
const { fetchLogs, fetchLogMatches } = useReportFetcherContext();
|
|
105
|
+
const { filters, updateFilters, pagination, changePagination } = useReportFilterContext();
|
|
106
|
+
const { page, rowsPerPage } = pagination;
|
|
107
|
+
const [selectedRowIndex, setSelectedRowIndex] = useState(-1);
|
|
108
|
+
const [rowData, setRowData] = useState(null);
|
|
109
|
+
const [searchMatches, setSearchMatches] = useState([]);
|
|
110
|
+
const [searchResults, setSearchResults] = useState([]);
|
|
111
|
+
const [currentResultIndex, setCurrentResultIndex] = useState(-1);
|
|
112
|
+
const [searchTerm, setSearchTerm] = useState("");
|
|
113
|
+
const [isGridReady, setIsGridReady] = useState(false);
|
|
114
|
+
const [filtersInitialized, setFiltersInitialized] = useState(false);
|
|
115
|
+
const [count, setCount] = useState(0);
|
|
116
|
+
const gridRef = useRef(null);
|
|
117
|
+
const inputRef = useRef(null);
|
|
118
|
+
const pendingScrollRef = useRef(null);
|
|
119
|
+
const severityFilter = useStableComputedArray(
|
|
120
|
+
() => getColumnFilterValue(filters, "severity") ?? [],
|
|
121
|
+
[filters]
|
|
122
|
+
);
|
|
123
|
+
const messageFilter = useMemo(() => getColumnFilterValue(filters, "message"), [filters]);
|
|
124
|
+
useEffect(() => {
|
|
125
|
+
setFiltersInitialized(false);
|
|
126
|
+
}, [reportType, severities]);
|
|
127
|
+
const resetSearch = useCallback(() => {
|
|
128
|
+
setSearchMatches([]);
|
|
129
|
+
setSearchResults([]);
|
|
130
|
+
setCurrentResultIndex(-1);
|
|
131
|
+
setSearchTerm("");
|
|
132
|
+
}, []);
|
|
133
|
+
const refreshLogsOnSelectedReport = useCallback(() => {
|
|
134
|
+
if (severityFilter.length === 0) {
|
|
135
|
+
setRowData([]);
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
fetchLogs(selectedReport.id, severityFilter, messageFilter, selectedReport.type, page, rowsPerPage)?.then(
|
|
139
|
+
(pagedLogs) => {
|
|
140
|
+
const { content, totalElements, totalPages } = pagedLogs;
|
|
141
|
+
if (totalPages - 1 < page) {
|
|
142
|
+
changePagination({ page: 0, rowsPerPage });
|
|
143
|
+
}
|
|
144
|
+
setCount(totalElements);
|
|
145
|
+
setSelectedRowIndex(-1);
|
|
146
|
+
setRowData(content);
|
|
147
|
+
}
|
|
148
|
+
);
|
|
149
|
+
}, [
|
|
150
|
+
severityFilter,
|
|
151
|
+
fetchLogs,
|
|
152
|
+
selectedReport.id,
|
|
153
|
+
selectedReport.type,
|
|
154
|
+
messageFilter,
|
|
155
|
+
page,
|
|
156
|
+
rowsPerPage,
|
|
157
|
+
changePagination
|
|
158
|
+
]);
|
|
159
|
+
useEffect(() => {
|
|
160
|
+
if (severities && severities.length > 0) {
|
|
161
|
+
const severityNotAlreadyInFilter = severities.some((severity) => !severityFilter.includes(severity));
|
|
162
|
+
const needsInitialization = resetFilters || !filtersInitialized && severityFilter.length === 0 || !filtersInitialized && severityNotAlreadyInFilter;
|
|
163
|
+
if (needsInitialization) {
|
|
164
|
+
updateFilters([
|
|
165
|
+
{
|
|
166
|
+
column: "severity",
|
|
167
|
+
dataType: FilterDataTypes.TEXT,
|
|
168
|
+
type: FilterTextComparators.EQUALS,
|
|
169
|
+
value: getDefaultSeverityFilter(severities)
|
|
170
|
+
}
|
|
171
|
+
]);
|
|
172
|
+
setFiltersInitialized(true);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}, [severities, resetFilters, filtersInitialized, severityFilter, updateFilters]);
|
|
176
|
+
useEffect(() => {
|
|
177
|
+
if (selectedReport.id && selectedReport.type) {
|
|
178
|
+
refreshLogsOnSelectedReport();
|
|
179
|
+
}
|
|
180
|
+
}, [refreshLogsOnSelectedReport, selectedReport]);
|
|
181
|
+
useEffect(() => {
|
|
182
|
+
onFiltersChanged();
|
|
183
|
+
const api = gridRef.current?.api;
|
|
184
|
+
if (!api || !isGridReady) {
|
|
185
|
+
return;
|
|
186
|
+
}
|
|
187
|
+
applyFiltersToGrid(api, filters);
|
|
188
|
+
}, [filters, isGridReady, onFiltersChanged]);
|
|
189
|
+
const COLUMNS_DEFINITIONS = useMemo(
|
|
190
|
+
() => [
|
|
191
|
+
makeAgGridCustomHeaderColumn({
|
|
192
|
+
headerName: intl.formatMessage({ id: "report_viewer/severity" }),
|
|
193
|
+
width: SEVERITY_COLUMN_FIXED_WIDTH,
|
|
194
|
+
colId: "severity",
|
|
195
|
+
field: "severity",
|
|
196
|
+
cellStyle: (params) => ({
|
|
197
|
+
backgroundColor: params.data?.backgroundColor ?? theme.palette.background.default,
|
|
198
|
+
textAlign: "center"
|
|
199
|
+
})
|
|
200
|
+
}),
|
|
201
|
+
makeAgGridCustomHeaderColumn({
|
|
202
|
+
headerName: intl.formatMessage({ id: "report_viewer/message" }),
|
|
203
|
+
colId: "message",
|
|
204
|
+
field: "message",
|
|
205
|
+
context: {
|
|
206
|
+
filterComponent: CustomAggridComparatorFilter,
|
|
207
|
+
filterComponentParams: {
|
|
208
|
+
filterParams: {
|
|
209
|
+
type: TableType.Logs,
|
|
210
|
+
tab: reportType,
|
|
211
|
+
dataType: FilterDataTypes.TEXT,
|
|
212
|
+
comparators: [FilterTextComparators.CONTAINS]
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
forceDisplayFilterIcon: true
|
|
216
|
+
},
|
|
217
|
+
flex: 1,
|
|
218
|
+
cellRenderer: (param) => MessageLogCellRenderer({
|
|
219
|
+
param,
|
|
220
|
+
highlightColor: theme.searchedText.highlightColor,
|
|
221
|
+
currentHighlightColor: theme.searchedText.currentHighlightColor,
|
|
222
|
+
searchTerm,
|
|
223
|
+
currentResultIndex,
|
|
224
|
+
searchResults
|
|
225
|
+
})
|
|
226
|
+
})
|
|
227
|
+
],
|
|
228
|
+
[intl, theme, searchTerm, currentResultIndex, searchResults, reportType]
|
|
229
|
+
);
|
|
230
|
+
const handleRowClick = useCallback(
|
|
231
|
+
(row) => {
|
|
232
|
+
setSelectedRowIndex(row.rowIndex);
|
|
233
|
+
onRowClick(row.data);
|
|
234
|
+
},
|
|
235
|
+
[onRowClick]
|
|
236
|
+
);
|
|
237
|
+
const rowStyleFormat = useCallback(
|
|
238
|
+
(row) => {
|
|
239
|
+
if (row.rowIndex && row.rowIndex < 0) {
|
|
240
|
+
return {};
|
|
241
|
+
}
|
|
242
|
+
return selectedRowIndex === row.rowIndex ? { backgroundColor: theme.palette.action.selected } : {};
|
|
243
|
+
},
|
|
244
|
+
[selectedRowIndex, theme.palette.action.selected]
|
|
245
|
+
);
|
|
246
|
+
const onGridReady = ({ api }) => {
|
|
247
|
+
api?.sizeColumnsToFit();
|
|
248
|
+
setIsGridReady(true);
|
|
249
|
+
};
|
|
250
|
+
const defaultColumnDefinition = {
|
|
251
|
+
sortable: false,
|
|
252
|
+
resizable: false,
|
|
253
|
+
suppressMovable: true
|
|
254
|
+
};
|
|
255
|
+
const highlightAndScrollToMatch = useCallback((index, matches) => {
|
|
256
|
+
if (!gridRef.current || matches.length === 0) {
|
|
257
|
+
return;
|
|
258
|
+
}
|
|
259
|
+
gridRef.current.api.ensureIndexVisible(matches[index], "middle");
|
|
260
|
+
}, []);
|
|
261
|
+
const handleSearchResults = useCallback(
|
|
262
|
+
(matches) => {
|
|
263
|
+
setSearchResults(matches);
|
|
264
|
+
setCurrentResultIndex(matches.length > 0 ? 0 : -1);
|
|
265
|
+
if (matches.length > 0) {
|
|
266
|
+
highlightAndScrollToMatch(0, matches);
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
[highlightAndScrollToMatch]
|
|
270
|
+
);
|
|
271
|
+
const handleSearch = useCallback(
|
|
272
|
+
(term) => {
|
|
273
|
+
if (!gridRef.current || !term) {
|
|
274
|
+
resetSearch();
|
|
275
|
+
return;
|
|
276
|
+
}
|
|
277
|
+
setSearchTerm(term);
|
|
278
|
+
fetchLogMatches(
|
|
279
|
+
selectedReport.id,
|
|
280
|
+
severityFilter,
|
|
281
|
+
messageFilter,
|
|
282
|
+
selectedReport.type,
|
|
283
|
+
term,
|
|
284
|
+
rowsPerPage
|
|
285
|
+
)?.then((matchesPositions) => {
|
|
286
|
+
setSearchMatches(matchesPositions);
|
|
287
|
+
const matches = matchesPositions.map((m) => m.rowIndex);
|
|
288
|
+
if (matches.length > 0) {
|
|
289
|
+
changePagination({ page: matchesPositions[0].page, rowsPerPage });
|
|
290
|
+
}
|
|
291
|
+
handleSearchResults(matches);
|
|
292
|
+
});
|
|
293
|
+
},
|
|
294
|
+
[
|
|
295
|
+
fetchLogMatches,
|
|
296
|
+
handleSearchResults,
|
|
297
|
+
messageFilter,
|
|
298
|
+
resetSearch,
|
|
299
|
+
rowsPerPage,
|
|
300
|
+
selectedReport.id,
|
|
301
|
+
selectedReport.type,
|
|
302
|
+
changePagination,
|
|
303
|
+
severityFilter
|
|
304
|
+
]
|
|
305
|
+
);
|
|
306
|
+
const handleNavigate = useCallback(
|
|
307
|
+
(direction) => {
|
|
308
|
+
if (!gridRef.current || searchResults.length === 0) {
|
|
309
|
+
return;
|
|
310
|
+
}
|
|
311
|
+
const newIndex = direction === "next" ? (currentResultIndex + 1) % searchResults.length : (currentResultIndex - 1 + searchResults.length) % searchResults.length;
|
|
312
|
+
pendingScrollRef.current = searchResults[newIndex];
|
|
313
|
+
changePagination({ page: searchMatches[newIndex].page, rowsPerPage });
|
|
314
|
+
setCurrentResultIndex(newIndex);
|
|
315
|
+
highlightAndScrollToMatch(newIndex, searchResults);
|
|
316
|
+
},
|
|
317
|
+
[searchResults, changePagination, searchMatches, rowsPerPage, highlightAndScrollToMatch, currentResultIndex]
|
|
318
|
+
);
|
|
319
|
+
const handleRowDataUpdated = useCallback(() => {
|
|
320
|
+
if (pendingScrollRef.current === null || !gridRef.current) {
|
|
321
|
+
return;
|
|
322
|
+
}
|
|
323
|
+
const rowIndex = pendingScrollRef.current;
|
|
324
|
+
pendingScrollRef.current = null;
|
|
325
|
+
gridRef.current.api?.ensureIndexVisible(rowIndex, "middle");
|
|
326
|
+
}, []);
|
|
327
|
+
const handleChipClick = useCallback(
|
|
328
|
+
(severity) => {
|
|
329
|
+
const updatedFilter = severityFilter.includes(severity) ? severityFilter.filter((s) => s !== severity) : [...severityFilter, severity];
|
|
330
|
+
updateFilters([
|
|
331
|
+
{
|
|
332
|
+
column: "severity",
|
|
333
|
+
dataType: FilterDataTypes.TEXT,
|
|
334
|
+
type: FilterTextComparators.EQUALS,
|
|
335
|
+
value: updatedFilter
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
column: "message",
|
|
339
|
+
dataType: FilterDataTypes.TEXT,
|
|
340
|
+
type: FilterTextComparators.CONTAINS,
|
|
341
|
+
value: messageFilter
|
|
342
|
+
}
|
|
343
|
+
]);
|
|
344
|
+
},
|
|
345
|
+
[updateFilters, severityFilter, messageFilter]
|
|
346
|
+
);
|
|
347
|
+
const handleChangePage = useCallback(
|
|
348
|
+
(_, newPage) => {
|
|
349
|
+
changePagination({ page: newPage, rowsPerPage });
|
|
350
|
+
const firstMatchIndex = searchMatches.findIndex((match) => match.page === newPage);
|
|
351
|
+
setCurrentResultIndex(firstMatchIndex);
|
|
352
|
+
},
|
|
353
|
+
[searchMatches, rowsPerPage, changePagination]
|
|
354
|
+
);
|
|
355
|
+
const handleChangeRowsPerPage = useCallback(
|
|
356
|
+
(event) => {
|
|
357
|
+
changePagination({ page: 0, rowsPerPage: parseInt(event.target.value, 10) });
|
|
358
|
+
},
|
|
359
|
+
[changePagination]
|
|
360
|
+
);
|
|
361
|
+
useEffect(() => {
|
|
362
|
+
handleSearch(searchTerm);
|
|
363
|
+
}, [handleSearch]);
|
|
364
|
+
return /* @__PURE__ */ jsxs(Box, { sx: reportStyles.mainContainer, children: [
|
|
365
|
+
/* @__PURE__ */ jsxs(Box, { sx: styles.toolContainer, children: [
|
|
366
|
+
/* @__PURE__ */ jsx(
|
|
367
|
+
QuickSearch,
|
|
368
|
+
{
|
|
369
|
+
currentResultIndex,
|
|
370
|
+
onSearch: handleSearch,
|
|
371
|
+
onNavigate: handleNavigate,
|
|
372
|
+
resultCount: searchResults.length,
|
|
373
|
+
resetSearch,
|
|
374
|
+
placeholder: "searchPlaceholderLog",
|
|
375
|
+
inputRef
|
|
376
|
+
}
|
|
377
|
+
),
|
|
378
|
+
/* @__PURE__ */ jsx(Box, { sx: styles.chipContainer, children: severities?.map((severity) => /* @__PURE__ */ jsx(
|
|
379
|
+
Chip,
|
|
380
|
+
{
|
|
381
|
+
label: severity,
|
|
382
|
+
deleteIcon: severityFilter.includes(severity) ? /* @__PURE__ */ jsx(Visibility, {}) : /* @__PURE__ */ jsx(VisibilityOff, {}),
|
|
383
|
+
onClick: () => handleChipClick(severity),
|
|
384
|
+
onDelete: () => handleChipClick(severity),
|
|
385
|
+
sx: chipStyle(severity, severityFilter, theme)
|
|
386
|
+
},
|
|
387
|
+
severity
|
|
388
|
+
)) })
|
|
389
|
+
] }),
|
|
390
|
+
/* @__PURE__ */ jsx(Box, { sx: { flex: 1 }, children: /* @__PURE__ */ jsx(
|
|
391
|
+
CustomAGGrid,
|
|
392
|
+
{
|
|
393
|
+
ref: gridRef,
|
|
394
|
+
columnDefs: COLUMNS_DEFINITIONS,
|
|
395
|
+
rowData,
|
|
396
|
+
onCellClicked: handleRowClick,
|
|
397
|
+
getRowStyle: rowStyleFormat,
|
|
398
|
+
onGridReady,
|
|
399
|
+
onRowDataUpdated: handleRowDataUpdated,
|
|
400
|
+
defaultColDef: defaultColumnDefinition,
|
|
401
|
+
overrideLocales: AGGRID_LOCALES
|
|
402
|
+
}
|
|
403
|
+
) }),
|
|
404
|
+
/* @__PURE__ */ jsx(
|
|
405
|
+
CustomTablePagination,
|
|
406
|
+
{
|
|
407
|
+
component: "div",
|
|
408
|
+
rowsPerPageOptions: PAGE_OPTIONS,
|
|
409
|
+
count,
|
|
410
|
+
rowsPerPage,
|
|
411
|
+
page,
|
|
412
|
+
onPageChange: handleChangePage,
|
|
413
|
+
onRowsPerPageChange: handleChangeRowsPerPage,
|
|
414
|
+
showFirstButton: true,
|
|
415
|
+
showLastButton: true
|
|
416
|
+
}
|
|
417
|
+
)
|
|
418
|
+
] });
|
|
419
|
+
}
|
|
420
|
+
const LogTable$1 = memo(LogTable);
|
|
421
|
+
export {
|
|
422
|
+
LogTable$1 as default
|
|
423
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComputingAndNetworkModificationType, Report, SeverityLevel } from '../report.type';
|
|
2
|
+
export type ReportViewerProps = {
|
|
3
|
+
report: Report;
|
|
4
|
+
reportType: ComputingAndNetworkModificationType;
|
|
5
|
+
severities: SeverityLevel[] | undefined;
|
|
6
|
+
resetFilters?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare function ReportViewer({ report, reportType, severities, resetFilters, }: Readonly<ReportViewerProps>): import("react").JSX.Element;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useMemo, useEffect, useCallback, useRef } from "react";
|
|
3
|
+
import { PanelGroup, Panel, PanelResizeHandle } from "react-resizable-panels";
|
|
4
|
+
import { DragIndicator } from "@mui/icons-material";
|
|
5
|
+
import { Box } from "@mui/material";
|
|
6
|
+
import LogTable from "./log-table/log-table.js";
|
|
7
|
+
import { mapReportsTree } from "../report-treeview/report-tree.mapper.js";
|
|
8
|
+
import { VirtualizedTreeview } from "../report-treeview/virtualized-treeview.js";
|
|
9
|
+
import { ReportType } from "../report.type.js";
|
|
10
|
+
import { GLOBAL_REPORT_NODE_LABEL } from "../report.constant.js";
|
|
11
|
+
const styles = {
|
|
12
|
+
panelHandlerContainer: (theme) => ({
|
|
13
|
+
display: "flex",
|
|
14
|
+
alignItems: "center",
|
|
15
|
+
borderRight: `1px solid ${theme.palette.divider}`
|
|
16
|
+
})
|
|
17
|
+
};
|
|
18
|
+
function ReportViewer({
|
|
19
|
+
report,
|
|
20
|
+
reportType,
|
|
21
|
+
severities = [],
|
|
22
|
+
resetFilters = false
|
|
23
|
+
}) {
|
|
24
|
+
const [expandedTreeReports, setExpandedTreeReports] = useState([]);
|
|
25
|
+
const [highlightedReportId, setHighlightedReportId] = useState();
|
|
26
|
+
const [selectedReport, setSelectedReport] = useState({
|
|
27
|
+
id: report.id,
|
|
28
|
+
type: report.message === GLOBAL_REPORT_NODE_LABEL ? ReportType.GLOBAL : ReportType.NODE
|
|
29
|
+
});
|
|
30
|
+
const reportTree = useMemo(() => mapReportsTree(report), [report]);
|
|
31
|
+
const reportTreeMap = useMemo(() => {
|
|
32
|
+
const map = {};
|
|
33
|
+
const mapReportsById = (item) => {
|
|
34
|
+
map[item.id] = item;
|
|
35
|
+
item.subReports.forEach((subReport) => mapReportsById(subReport));
|
|
36
|
+
};
|
|
37
|
+
mapReportsById(reportTree);
|
|
38
|
+
return map;
|
|
39
|
+
}, [reportTree]);
|
|
40
|
+
useEffect(() => {
|
|
41
|
+
const newType = reportTreeMap[reportTree.id]?.type;
|
|
42
|
+
setSelectedReport((currentSelected) => {
|
|
43
|
+
if (currentSelected.id !== reportTree.id || currentSelected.type !== newType) {
|
|
44
|
+
setExpandedTreeReports([reportTree.id]);
|
|
45
|
+
return { id: reportTree.id, type: newType };
|
|
46
|
+
}
|
|
47
|
+
return currentSelected;
|
|
48
|
+
});
|
|
49
|
+
}, [reportTree, reportTreeMap]);
|
|
50
|
+
const onLogRowClick = useCallback(
|
|
51
|
+
(data) => {
|
|
52
|
+
setExpandedTreeReports((previouslyExpandedTreeReports) => {
|
|
53
|
+
const treeReportsToExpand = new Set(previouslyExpandedTreeReports);
|
|
54
|
+
let parentId = data?.parentId ?? null;
|
|
55
|
+
while (parentId && reportTreeMap[parentId]?.parentId) {
|
|
56
|
+
parentId = reportTreeMap[parentId].parentId;
|
|
57
|
+
if (parentId) {
|
|
58
|
+
treeReportsToExpand.add(parentId);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return Array.from(treeReportsToExpand);
|
|
62
|
+
});
|
|
63
|
+
setHighlightedReportId(data?.parentId);
|
|
64
|
+
},
|
|
65
|
+
[reportTreeMap]
|
|
66
|
+
);
|
|
67
|
+
const onFiltersChanged = useCallback(() => {
|
|
68
|
+
setHighlightedReportId(void 0);
|
|
69
|
+
}, []);
|
|
70
|
+
const handleSelectedItem = useCallback(
|
|
71
|
+
(reportItem) => {
|
|
72
|
+
setSelectedReport((prevSelectedReport) => {
|
|
73
|
+
if (prevSelectedReport.id !== reportItem.id) {
|
|
74
|
+
return { id: reportItem.id, type: reportTreeMap[reportItem.id].type };
|
|
75
|
+
}
|
|
76
|
+
return prevSelectedReport;
|
|
77
|
+
});
|
|
78
|
+
setHighlightedReportId(void 0);
|
|
79
|
+
},
|
|
80
|
+
[reportTreeMap]
|
|
81
|
+
);
|
|
82
|
+
const panelGroupRef = useRef(null);
|
|
83
|
+
const LEFT_PANEL_MIN_SIZE = 15;
|
|
84
|
+
const LEFT_PANEL_DEFAULT_SIZE = 25;
|
|
85
|
+
const RIGHT_PANEL_MIN_SIZE = 50;
|
|
86
|
+
return /* @__PURE__ */ jsxs(PanelGroup, { direction: "horizontal", ref: panelGroupRef, children: [
|
|
87
|
+
/* @__PURE__ */ jsx(Panel, { id: "treeview-panel", minSize: LEFT_PANEL_MIN_SIZE, defaultSize: LEFT_PANEL_DEFAULT_SIZE, children: /* @__PURE__ */ jsx(
|
|
88
|
+
VirtualizedTreeview,
|
|
89
|
+
{
|
|
90
|
+
expandedTreeReports,
|
|
91
|
+
setExpandedTreeReports,
|
|
92
|
+
selectedReportId: selectedReport.id,
|
|
93
|
+
reportTree,
|
|
94
|
+
onSelectedItem: handleSelectedItem,
|
|
95
|
+
highlightedReportId
|
|
96
|
+
}
|
|
97
|
+
) }),
|
|
98
|
+
/* @__PURE__ */ jsx(Box, { sx: styles.panelHandlerContainer, children: /* @__PURE__ */ jsx(PanelResizeHandle, { children: /* @__PURE__ */ jsx(DragIndicator, { fontSize: "small" }) }) }),
|
|
99
|
+
/* @__PURE__ */ jsx(Panel, { id: "logtable-panel", minSize: RIGHT_PANEL_MIN_SIZE, children: /* @__PURE__ */ jsx(
|
|
100
|
+
LogTable,
|
|
101
|
+
{
|
|
102
|
+
selectedReport,
|
|
103
|
+
reportType,
|
|
104
|
+
severities,
|
|
105
|
+
onRowClick: onLogRowClick,
|
|
106
|
+
onFiltersChanged,
|
|
107
|
+
resetFilters
|
|
108
|
+
}
|
|
109
|
+
) })
|
|
110
|
+
] });
|
|
111
|
+
}
|
|
112
|
+
export {
|
|
113
|
+
ReportViewer
|
|
114
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
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 const GLOBAL_REPORT_NODE_LABEL = "Logs";
|
|
8
|
+
export declare const NETWORK_MODIFICATION = "NETWORK_MODIFICATION";
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { NETWORK_MODIFICATION } from './report.constant';
|
|
2
|
+
import { ComputingType } from '../../../utils';
|
|
3
|
+
export type SeverityLevel = 'UNKNOWN' | 'TRACE' | 'DEBUG' | 'DETAIL' | 'INFO' | 'WARN' | 'ERROR' | 'FATAL';
|
|
4
|
+
export type ComputingAndNetworkModificationType = ComputingType | typeof NETWORK_MODIFICATION;
|
|
5
|
+
export type ReportSeverity = {
|
|
6
|
+
name: SeverityLevel;
|
|
7
|
+
level: number;
|
|
8
|
+
colorName: string;
|
|
9
|
+
colorHexCode: string;
|
|
10
|
+
displayedByDefault: boolean;
|
|
11
|
+
displayedByDefaultForReportContainer: boolean;
|
|
12
|
+
};
|
|
13
|
+
export declare enum ReportType {
|
|
14
|
+
GLOBAL = "GlobalReport",
|
|
15
|
+
NODE = "NodeReport"
|
|
16
|
+
}
|
|
17
|
+
interface BaseReport<T> {
|
|
18
|
+
message: string;
|
|
19
|
+
severity: SeverityLevel;
|
|
20
|
+
parentId: string | null;
|
|
21
|
+
id: string;
|
|
22
|
+
subReports: T[];
|
|
23
|
+
}
|
|
24
|
+
export interface ReportTree extends Omit<BaseReport<ReportTree>, 'severity'> {
|
|
25
|
+
type: ReportType;
|
|
26
|
+
severity: ReportSeverity;
|
|
27
|
+
}
|
|
28
|
+
export interface Report extends BaseReport<Report> {
|
|
29
|
+
}
|
|
30
|
+
export type Log = {
|
|
31
|
+
message: string;
|
|
32
|
+
severity: string;
|
|
33
|
+
backgroundColor: string;
|
|
34
|
+
depth: number;
|
|
35
|
+
parentId: string;
|
|
36
|
+
};
|
|
37
|
+
export type ReportLog = {
|
|
38
|
+
message: string;
|
|
39
|
+
severity: SeverityLevel;
|
|
40
|
+
depth: number;
|
|
41
|
+
parentId: string;
|
|
42
|
+
backgroundColor?: string;
|
|
43
|
+
};
|
|
44
|
+
export type SelectedReportLog = {
|
|
45
|
+
id: string;
|
|
46
|
+
type: ReportType;
|
|
47
|
+
};
|
|
48
|
+
export type PagedReportLogs = {
|
|
49
|
+
content: ReportLog[];
|
|
50
|
+
totalElements: number;
|
|
51
|
+
totalPages: number;
|
|
52
|
+
};
|
|
53
|
+
export type PagedLogs = {
|
|
54
|
+
content: Log[];
|
|
55
|
+
totalElements: number;
|
|
56
|
+
totalPages: number;
|
|
57
|
+
};
|
|
58
|
+
export type MatchPosition = {
|
|
59
|
+
page: number;
|
|
60
|
+
rowIndex: number;
|
|
61
|
+
};
|
|
62
|
+
export type LogsPaginationConfig = {
|
|
63
|
+
page: number;
|
|
64
|
+
rowsPerPage: number;
|
|
65
|
+
};
|
|
66
|
+
export {};
|