@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,12 @@
|
|
|
1
|
+
import { ChangeEvent } from 'react';
|
|
2
|
+
import { SelectChangeEvent } from '@mui/material';
|
|
3
|
+
import { FilterParams } from '../../custom-aggrid-types';
|
|
4
|
+
export declare const useCustomAggridComparatorFilter: (colId: string, filterParams: FilterParams) => {
|
|
5
|
+
selectedFilterData: unknown;
|
|
6
|
+
selectedFilterComparator: string;
|
|
7
|
+
decimalAfterDot: number;
|
|
8
|
+
isNumberInput: boolean;
|
|
9
|
+
handleFilterComparatorChange: (event: SelectChangeEvent) => void;
|
|
10
|
+
handleFilterTextChange: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
11
|
+
handleClearFilter: () => void;
|
|
12
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { useMemo } from "react";
|
|
2
|
+
import "react/jsx-runtime";
|
|
3
|
+
import "react-intl";
|
|
4
|
+
import "../../../../../utils/conversionUtils.js";
|
|
5
|
+
import "../../../../../utils/types/equipmentType.js";
|
|
6
|
+
import "@mui/icons-material";
|
|
7
|
+
import "@mui/material";
|
|
8
|
+
import "localized-countries";
|
|
9
|
+
import "localized-countries/data/fr";
|
|
10
|
+
import "localized-countries/data/en";
|
|
11
|
+
import { useSnackMessage } from "../../../../../hooks/useSnackMessage.js";
|
|
12
|
+
import { FilterDataTypes, FilterTextComparators } from "../../custom-aggrid-types.js";
|
|
13
|
+
import { countDecimalPlacesFromString } from "../../../../../utils/rounding.js";
|
|
14
|
+
import { computeTolerance } from "../utils/filter-tolerance-utils.js";
|
|
15
|
+
import { useCustomAggridColumnFilter } from "./use-custom-aggrid-column-filter.js";
|
|
16
|
+
const useCustomAggridComparatorFilter = (colId, filterParams) => {
|
|
17
|
+
const { dataType = FilterDataTypes.TEXT, comparators = [] } = filterParams;
|
|
18
|
+
const isNumberInput = dataType === FilterDataTypes.NUMBER;
|
|
19
|
+
const { selectedFilterData, selectedFilterComparator, handleChangeFilterValue, handleChangeComparator } = useCustomAggridColumnFilter(colId, filterParams);
|
|
20
|
+
const { snackWarning } = useSnackMessage();
|
|
21
|
+
const handleFilterComparatorChange = (event) => {
|
|
22
|
+
const newType = event.target.value;
|
|
23
|
+
handleChangeComparator(newType);
|
|
24
|
+
};
|
|
25
|
+
const handleClearFilter = () => {
|
|
26
|
+
if ((selectedFilterComparator === FilterTextComparators.IS_EMPTY || selectedFilterComparator === FilterTextComparators.IS_NOT_EMPTY) && comparators.length > 0) {
|
|
27
|
+
handleChangeComparator(comparators[0]);
|
|
28
|
+
} else {
|
|
29
|
+
handleChangeFilterValue({
|
|
30
|
+
value: void 0
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
const handleFilterTextChange = (event) => {
|
|
35
|
+
const value = event.target.value.toUpperCase();
|
|
36
|
+
handleChangeFilterValue({
|
|
37
|
+
value,
|
|
38
|
+
tolerance: isNumberInput ? computeTolerance(value) : void 0
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
const decimalAfterDot = useMemo(() => {
|
|
42
|
+
if (isNumberInput) {
|
|
43
|
+
const countDecimalAfterDot = countDecimalPlacesFromString(String(selectedFilterData));
|
|
44
|
+
if (countDecimalAfterDot >= 13) {
|
|
45
|
+
snackWarning({
|
|
46
|
+
headerId: "filter.warnRounding"
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
return countDecimalAfterDot;
|
|
50
|
+
}
|
|
51
|
+
return 0;
|
|
52
|
+
}, [isNumberInput, selectedFilterData, snackWarning]);
|
|
53
|
+
return {
|
|
54
|
+
selectedFilterData,
|
|
55
|
+
selectedFilterComparator,
|
|
56
|
+
decimalAfterDot,
|
|
57
|
+
isNumberInput,
|
|
58
|
+
handleFilterComparatorChange,
|
|
59
|
+
handleFilterTextChange,
|
|
60
|
+
handleClearFilter
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
export {
|
|
64
|
+
useCustomAggridComparatorFilter
|
|
65
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
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 * from './custom-aggrid-autocomplete-filter';
|
|
8
|
+
export * from './custom-aggrid-comparator-filter';
|
|
9
|
+
export * from './custom-aggrid-comparator-selector';
|
|
10
|
+
export * from './custom-aggrid-filter';
|
|
11
|
+
export * from './custom-aggrid-text-filter';
|
|
12
|
+
export * from './custom-filter-icon';
|
|
13
|
+
export * from './hooks';
|
|
14
|
+
export * from './utils';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CustomAggridAutocompleteFilter } from "./custom-aggrid-autocomplete-filter.js";
|
|
2
|
+
import { CustomAggridComparatorFilter } from "./custom-aggrid-comparator-filter.js";
|
|
3
|
+
import { CustomAggridComparatorSelector } from "./custom-aggrid-comparator-selector.js";
|
|
4
|
+
import { CustomAggridFilter } from "./custom-aggrid-filter.js";
|
|
5
|
+
import { CustomAggridTextFilter } from "./custom-aggrid-text-filter.js";
|
|
6
|
+
import { CustomFilterIcon } from "./custom-filter-icon.js";
|
|
7
|
+
import { useCustomAggridColumnFilter } from "./hooks/use-custom-aggrid-column-filter.js";
|
|
8
|
+
import { useCustomAggridComparatorFilter } from "./hooks/use-custom-aggrid-comparator-filter.js";
|
|
9
|
+
import { addToleranceToFilter, computeTolerance } from "./utils/filter-tolerance-utils.js";
|
|
10
|
+
export {
|
|
11
|
+
CustomAggridAutocompleteFilter,
|
|
12
|
+
CustomAggridComparatorFilter,
|
|
13
|
+
CustomAggridComparatorSelector,
|
|
14
|
+
CustomAggridFilter,
|
|
15
|
+
CustomAggridTextFilter,
|
|
16
|
+
CustomFilterIcon,
|
|
17
|
+
addToleranceToFilter,
|
|
18
|
+
computeTolerance,
|
|
19
|
+
useCustomAggridColumnFilter,
|
|
20
|
+
useCustomAggridComparatorFilter
|
|
21
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FilterConfig } from '../../custom-aggrid-types';
|
|
2
|
+
/**
|
|
3
|
+
* Compute the tolerance that should be applied when comparing filter values to database values
|
|
4
|
+
* @param value value entered in the filter
|
|
5
|
+
*/
|
|
6
|
+
export declare const computeTolerance: (value: unknown) => number;
|
|
7
|
+
export declare const addToleranceToFilter: (filters: FilterConfig[], tolerance?: number | undefined) => FilterConfig[];
|
package/dist/components/composite/customAGGrid/custom-aggrid-filters/utils/filter-tolerance-utils.js
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { isNumber } from "mathjs";
|
|
2
|
+
import { countDecimalPlaces, countDecimalPlacesFromString } from "../../../../../utils/rounding.js";
|
|
3
|
+
import { FilterDataTypes, FilterNumberComparators, UndisplayedFilterNumberComparators } from "../../custom-aggrid-types.js";
|
|
4
|
+
const computeTolerance = (value) => {
|
|
5
|
+
if (!value) {
|
|
6
|
+
return 0;
|
|
7
|
+
}
|
|
8
|
+
let decimalPrecision;
|
|
9
|
+
if (isNumber(value)) {
|
|
10
|
+
decimalPrecision = countDecimalPlaces(value);
|
|
11
|
+
} else {
|
|
12
|
+
decimalPrecision = countDecimalPlacesFromString(value);
|
|
13
|
+
}
|
|
14
|
+
return 1 / 10 ** decimalPrecision * 0.5;
|
|
15
|
+
};
|
|
16
|
+
const addToleranceToFilter = (filters, tolerance = void 0) => {
|
|
17
|
+
let finalTolerance;
|
|
18
|
+
if (tolerance !== void 0) {
|
|
19
|
+
finalTolerance = tolerance;
|
|
20
|
+
}
|
|
21
|
+
return filters.map((filter) => {
|
|
22
|
+
const valueAsNumber = typeof filter.value === "string" ? parseFloat(filter.value) : filter.value;
|
|
23
|
+
if (typeof valueAsNumber === "number" && !Number.isNaN(valueAsNumber) && filter.dataType === FilterDataTypes.NUMBER) {
|
|
24
|
+
if (tolerance === void 0) {
|
|
25
|
+
finalTolerance = computeTolerance(filter.value);
|
|
26
|
+
}
|
|
27
|
+
switch (filter.type) {
|
|
28
|
+
// Creates two conditions to test we are not in [value-tolerance..value+tolerance] (handles rounded decimal precision)
|
|
29
|
+
case FilterNumberComparators.NOT_EQUAL:
|
|
30
|
+
return [
|
|
31
|
+
{
|
|
32
|
+
...filter,
|
|
33
|
+
type: UndisplayedFilterNumberComparators.GREATER_THAN,
|
|
34
|
+
originalType: filter.type,
|
|
35
|
+
value: valueAsNumber + finalTolerance
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
...filter,
|
|
39
|
+
type: UndisplayedFilterNumberComparators.LESS_THAN,
|
|
40
|
+
originalType: filter.type,
|
|
41
|
+
value: valueAsNumber - finalTolerance
|
|
42
|
+
}
|
|
43
|
+
];
|
|
44
|
+
case FilterNumberComparators.EQUALS:
|
|
45
|
+
return [
|
|
46
|
+
{
|
|
47
|
+
...filter,
|
|
48
|
+
type: FilterNumberComparators.GREATER_THAN_OR_EQUAL,
|
|
49
|
+
originalType: filter.type,
|
|
50
|
+
value: valueAsNumber - finalTolerance
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
...filter,
|
|
54
|
+
type: FilterNumberComparators.LESS_THAN_OR_EQUAL,
|
|
55
|
+
originalType: filter.type,
|
|
56
|
+
value: valueAsNumber + finalTolerance
|
|
57
|
+
}
|
|
58
|
+
];
|
|
59
|
+
case FilterNumberComparators.LESS_THAN_OR_EQUAL:
|
|
60
|
+
return {
|
|
61
|
+
...filter,
|
|
62
|
+
value: valueAsNumber + finalTolerance
|
|
63
|
+
};
|
|
64
|
+
case FilterNumberComparators.GREATER_THAN_OR_EQUAL:
|
|
65
|
+
return {
|
|
66
|
+
...filter,
|
|
67
|
+
value: valueAsNumber - finalTolerance
|
|
68
|
+
};
|
|
69
|
+
default:
|
|
70
|
+
return filter;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return filter;
|
|
74
|
+
}).flat();
|
|
75
|
+
};
|
|
76
|
+
export {
|
|
77
|
+
addToleranceToFilter,
|
|
78
|
+
computeTolerance
|
|
79
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, RTE (http://www.rte-france.com)
|
|
3
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
4
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
|
+
*/
|
|
7
|
+
export * from './filter-tolerance-utils';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React, ComponentType } from 'react';
|
|
2
|
+
import { CustomHeaderProps } from 'ag-grid-react';
|
|
3
|
+
import { CustomMenuProps } from './custom-aggrid-menu';
|
|
4
|
+
import { CustomAggridFilterParams, SortParams } from './custom-aggrid-types';
|
|
5
|
+
interface CustomHeaderComponentProps<F extends CustomAggridFilterParams, T> extends CustomHeaderProps {
|
|
6
|
+
displayName: string;
|
|
7
|
+
sortParams?: SortParams;
|
|
8
|
+
menu?: CustomMenuProps<T>;
|
|
9
|
+
forceDisplayFilterIcon: boolean;
|
|
10
|
+
filterComponent: ComponentType<F>;
|
|
11
|
+
filterComponentParams: F;
|
|
12
|
+
isInvalid?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare function CustomHeaderComponent<F extends CustomAggridFilterParams, T>({ column, displayName, sortParams, menu, forceDisplayFilterIcon, filterComponent, filterComponentParams, api, isInvalid, }: CustomHeaderComponentProps<F, T>): React.JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useCallback } from "react";
|
|
3
|
+
import { FormattedMessage } from "react-intl";
|
|
4
|
+
import { Grid, Tooltip } from "@mui/material";
|
|
5
|
+
import { WarningAmber } from "@mui/icons-material";
|
|
6
|
+
import { CustomAggridSort } from "./custom-aggrid-sort.js";
|
|
7
|
+
import { CustomMenu } from "./custom-aggrid-menu.js";
|
|
8
|
+
import { useCustomAggridSort } from "./hooks/use-custom-aggrid-sort.js";
|
|
9
|
+
import { CustomAggridFilter } from "./custom-aggrid-filters/custom-aggrid-filter.js";
|
|
10
|
+
const styles = {
|
|
11
|
+
displayName: {
|
|
12
|
+
overflow: "hidden",
|
|
13
|
+
textOverflow: "ellipsis"
|
|
14
|
+
},
|
|
15
|
+
invalidIcon: {
|
|
16
|
+
display: "flex",
|
|
17
|
+
alignItems: "center",
|
|
18
|
+
ml: 0.5
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
function CustomHeaderComponent({
|
|
22
|
+
column,
|
|
23
|
+
displayName,
|
|
24
|
+
sortParams,
|
|
25
|
+
menu,
|
|
26
|
+
forceDisplayFilterIcon,
|
|
27
|
+
filterComponent,
|
|
28
|
+
filterComponentParams,
|
|
29
|
+
api,
|
|
30
|
+
isInvalid
|
|
31
|
+
}) {
|
|
32
|
+
const [isHoveringColumnHeader, setIsHoveringColumnHeader] = useState(false);
|
|
33
|
+
const { handleSortChange } = useCustomAggridSort(column.getId(), sortParams, api);
|
|
34
|
+
const isSortable = !!sortParams;
|
|
35
|
+
const handleClickHeader = () => {
|
|
36
|
+
handleSortChange();
|
|
37
|
+
};
|
|
38
|
+
const handleCloseFilter = () => {
|
|
39
|
+
setIsHoveringColumnHeader(false);
|
|
40
|
+
};
|
|
41
|
+
const handleMouseEnter = useCallback(() => {
|
|
42
|
+
setIsHoveringColumnHeader(true);
|
|
43
|
+
}, []);
|
|
44
|
+
const handleMouseLeave = useCallback(() => {
|
|
45
|
+
setIsHoveringColumnHeader(false);
|
|
46
|
+
}, []);
|
|
47
|
+
return /* @__PURE__ */ jsx(Grid, { container: true, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: /* @__PURE__ */ jsxs(Grid, { container: true, alignItems: "center", wrap: "nowrap", children: [
|
|
48
|
+
/* @__PURE__ */ jsx(
|
|
49
|
+
Grid,
|
|
50
|
+
{
|
|
51
|
+
container: true,
|
|
52
|
+
sx: {
|
|
53
|
+
cursor: isSortable ? "pointer" : "default"
|
|
54
|
+
},
|
|
55
|
+
flexBasis: forceDisplayFilterIcon ? "0%" : "100%",
|
|
56
|
+
children: /* @__PURE__ */ jsx(
|
|
57
|
+
Grid,
|
|
58
|
+
{
|
|
59
|
+
container: true,
|
|
60
|
+
sx: {
|
|
61
|
+
overflow: "hidden"
|
|
62
|
+
},
|
|
63
|
+
onClick: handleClickHeader,
|
|
64
|
+
children: /* @__PURE__ */ jsxs(Grid, { container: true, sx: styles.displayName, alignItems: "center", wrap: "nowrap", children: [
|
|
65
|
+
/* @__PURE__ */ jsx(Grid, { item: true, children: displayName }),
|
|
66
|
+
isInvalid && /* @__PURE__ */ jsx(Grid, { item: true, sx: styles.invalidIcon, children: /* @__PURE__ */ jsx(
|
|
67
|
+
Tooltip,
|
|
68
|
+
{
|
|
69
|
+
title: /* @__PURE__ */ jsx(FormattedMessage, { id: "spreadsheet/column/invalid-without-loadflow" }),
|
|
70
|
+
children: /* @__PURE__ */ jsx(WarningAmber, { fontSize: "small", color: "warning" })
|
|
71
|
+
}
|
|
72
|
+
) }),
|
|
73
|
+
sortParams && /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(CustomAggridSort, { colId: column.getId(), sortParams }) })
|
|
74
|
+
] })
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
}
|
|
78
|
+
),
|
|
79
|
+
/* @__PURE__ */ jsxs(Grid, { container: true, flex: "1", wrap: "nowrap", children: [
|
|
80
|
+
filterComponent && /* @__PURE__ */ jsx(
|
|
81
|
+
CustomAggridFilter,
|
|
82
|
+
{
|
|
83
|
+
filterComponent,
|
|
84
|
+
filterComponentParams: { ...filterComponentParams, colId: column.getId(), api },
|
|
85
|
+
isHoveringColumnHeader,
|
|
86
|
+
forceDisplayFilterIcon,
|
|
87
|
+
handleCloseFilter
|
|
88
|
+
}
|
|
89
|
+
),
|
|
90
|
+
menu && /* @__PURE__ */ jsx(CustomMenu, { ...menu })
|
|
91
|
+
] })
|
|
92
|
+
] }) });
|
|
93
|
+
}
|
|
94
|
+
export {
|
|
95
|
+
CustomHeaderComponent
|
|
96
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface CustomMenuProps<T> {
|
|
3
|
+
Menu: React.FC<T | DialogMenuProps>;
|
|
4
|
+
menuParams: T;
|
|
5
|
+
}
|
|
6
|
+
export interface DialogMenuProps {
|
|
7
|
+
open: boolean;
|
|
8
|
+
anchorEl: HTMLElement | null;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function CustomMenu<T>({ Menu, menuParams }: CustomMenuProps<T>): React.JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useRef } from "react";
|
|
3
|
+
import { Grid, IconButton, Badge } from "@mui/material";
|
|
4
|
+
import { MoreVert } from "@mui/icons-material";
|
|
5
|
+
const styles = {
|
|
6
|
+
iconSize: {
|
|
7
|
+
fontSize: "1rem"
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
function CustomMenu({ Menu, menuParams }) {
|
|
11
|
+
const [menuOpen, setMenuOpen] = useState(false);
|
|
12
|
+
const menuButtonRef = useRef(null);
|
|
13
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
14
|
+
/* @__PURE__ */ jsx(Grid, { container: true, direction: "row", children: /* @__PURE__ */ jsx(IconButton, { ref: menuButtonRef, size: "small", onClick: () => setMenuOpen(true), children: /* @__PURE__ */ jsx(Badge, { color: "secondary", children: /* @__PURE__ */ jsx(MoreVert, { sx: styles.iconSize }) }) }) }),
|
|
15
|
+
/* @__PURE__ */ jsx(Menu, { open: menuOpen, onClose: () => setMenuOpen(false), anchorEl: menuButtonRef.current, ...menuParams })
|
|
16
|
+
] });
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
CustomMenu
|
|
20
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SortParams } from './custom-aggrid-types';
|
|
3
|
+
interface CustomAggridSortProps {
|
|
4
|
+
colId: string;
|
|
5
|
+
sortParams: SortParams;
|
|
6
|
+
}
|
|
7
|
+
export declare function CustomAggridSort({ colId, sortParams }: CustomAggridSortProps): false | React.JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { IconButton } from "@mui/material";
|
|
3
|
+
import { ArrowUpward, ArrowDownward } from "@mui/icons-material";
|
|
4
|
+
import { SortWay } from "./custom-aggrid-types.js";
|
|
5
|
+
import { useCustomAggridSort } from "./hooks/use-custom-aggrid-sort.js";
|
|
6
|
+
const styles = {
|
|
7
|
+
iconSize: {
|
|
8
|
+
fontSize: "1rem"
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
function CustomAggridSort({ colId, sortParams }) {
|
|
12
|
+
const { columnSort, handleSortChange } = useCustomAggridSort(colId, sortParams);
|
|
13
|
+
const handleClick = () => {
|
|
14
|
+
handleSortChange();
|
|
15
|
+
};
|
|
16
|
+
const isColumnSorted = !!columnSort;
|
|
17
|
+
return isColumnSorted && /* @__PURE__ */ jsx(IconButton, { onClick: handleClick, children: columnSort.sort === SortWay.ASC ? /* @__PURE__ */ jsx(ArrowUpward, { sx: styles.iconSize }) : /* @__PURE__ */ jsx(ArrowDownward, { sx: styles.iconSize }) });
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
CustomAggridSort
|
|
21
|
+
};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { ColDef, ComponentType, GridApi, IFilterOptionDef } from 'ag-grid-community';
|
|
2
|
+
import { UUID } from 'crypto';
|
|
3
|
+
import { DYNAMIC_SIMULATION_RESULT_SORT_STORE, LOADFLOW_RESULT_SORT_STORE, PCCMIN_ANALYSIS_RESULT_SORT_STORE, SECURITY_ANALYSIS_RESULT_SORT_STORE, SENSITIVITY_ANALYSIS_RESULT_SORT_STORE, SHORTCIRCUIT_ANALYSIS_RESULT_SORT_STORE, SPREADSHEET_SORT_STORE, STATEESTIMATION_RESULT_SORT_STORE } from '../../../utils/store-sort-filter-fields';
|
|
4
|
+
export declare enum TableType {
|
|
5
|
+
Loadflow = "Loadflow",
|
|
6
|
+
SecurityAnalysis = "SecurityAnalysis",
|
|
7
|
+
SensitivityAnalysis = "SensitivityAnalysis",
|
|
8
|
+
ShortcircuitAnalysis = "ShortcircuitAnalysis",
|
|
9
|
+
DynamicSimulation = "DynamicSimulation",
|
|
10
|
+
Spreadsheet = "Spreadsheet",
|
|
11
|
+
Logs = "Logs",
|
|
12
|
+
StateEstimation = "StateEstimation",
|
|
13
|
+
PccMin = "PccMin",
|
|
14
|
+
VoltageInit = "VoltageInit"
|
|
15
|
+
}
|
|
16
|
+
export declare enum FilterDataTypes {
|
|
17
|
+
TEXT = "text",
|
|
18
|
+
NUMBER = "number",
|
|
19
|
+
BOOLEAN = "boolean"
|
|
20
|
+
}
|
|
21
|
+
export declare enum FilterTextComparators {
|
|
22
|
+
EQUALS = "equals",
|
|
23
|
+
CONTAINS = "contains",
|
|
24
|
+
STARTS_WITH = "startsWith",
|
|
25
|
+
IS_EMPTY = "blank",
|
|
26
|
+
IS_NOT_EMPTY = "notBlank"
|
|
27
|
+
}
|
|
28
|
+
export declare enum FilterNumberComparators {
|
|
29
|
+
EQUALS = "equals",
|
|
30
|
+
NOT_EQUAL = "notEqual",
|
|
31
|
+
LESS_THAN_OR_EQUAL = "lessThanOrEqual",
|
|
32
|
+
GREATER_THAN_OR_EQUAL = "greaterThanOrEqual"
|
|
33
|
+
}
|
|
34
|
+
export type FilterParams = {
|
|
35
|
+
type: TableType;
|
|
36
|
+
tab: string;
|
|
37
|
+
dataType?: string;
|
|
38
|
+
comparators?: string[];
|
|
39
|
+
debounceMs?: number;
|
|
40
|
+
};
|
|
41
|
+
export interface CustomAggridFilterParams {
|
|
42
|
+
api: GridApi;
|
|
43
|
+
colId: string;
|
|
44
|
+
filterParams: FilterParams;
|
|
45
|
+
}
|
|
46
|
+
export declare enum UndisplayedFilterNumberComparators {
|
|
47
|
+
GREATER_THAN = "greaterThan",
|
|
48
|
+
LESS_THAN = "lessThan"
|
|
49
|
+
}
|
|
50
|
+
export type FilterData = {
|
|
51
|
+
dataType?: string;
|
|
52
|
+
type?: string;
|
|
53
|
+
originalType?: string;
|
|
54
|
+
value: unknown;
|
|
55
|
+
tolerance?: number;
|
|
56
|
+
};
|
|
57
|
+
export type FilterConfig = FilterData & {
|
|
58
|
+
column: string;
|
|
59
|
+
};
|
|
60
|
+
export type SortConfig = {
|
|
61
|
+
colId: string;
|
|
62
|
+
sort: SortWay;
|
|
63
|
+
children?: boolean;
|
|
64
|
+
};
|
|
65
|
+
export declare enum SortWay {
|
|
66
|
+
ASC = "asc",
|
|
67
|
+
DESC = "desc"
|
|
68
|
+
}
|
|
69
|
+
export type TableSortConfig = Record<string, SortConfig[]>;
|
|
70
|
+
export type TableSort = {
|
|
71
|
+
[SPREADSHEET_SORT_STORE]: TableSortConfig;
|
|
72
|
+
[LOADFLOW_RESULT_SORT_STORE]: TableSortConfig;
|
|
73
|
+
[SECURITY_ANALYSIS_RESULT_SORT_STORE]: TableSortConfig;
|
|
74
|
+
[SENSITIVITY_ANALYSIS_RESULT_SORT_STORE]: TableSortConfig;
|
|
75
|
+
[DYNAMIC_SIMULATION_RESULT_SORT_STORE]: TableSortConfig;
|
|
76
|
+
[SHORTCIRCUIT_ANALYSIS_RESULT_SORT_STORE]: TableSortConfig;
|
|
77
|
+
[STATEESTIMATION_RESULT_SORT_STORE]: TableSortConfig;
|
|
78
|
+
[PCCMIN_ANALYSIS_RESULT_SORT_STORE]: TableSortConfig;
|
|
79
|
+
};
|
|
80
|
+
export type TableSortKeysType = keyof TableSort;
|
|
81
|
+
export type SortParams = {
|
|
82
|
+
table: TableSortKeysType;
|
|
83
|
+
tab: string;
|
|
84
|
+
isChildren?: boolean;
|
|
85
|
+
persistSort?: (api: GridApi, sort: SortConfig) => Promise<void>;
|
|
86
|
+
};
|
|
87
|
+
export declare enum ColumnTypes {
|
|
88
|
+
TEXT = "TEXT",
|
|
89
|
+
ENUM = "ENUM",
|
|
90
|
+
NUMBER = "NUMBER",
|
|
91
|
+
BOOLEAN = "BOOLEAN"
|
|
92
|
+
}
|
|
93
|
+
export interface ColumnContext<F extends CustomAggridFilterParams = CustomAggridFilterParams> {
|
|
94
|
+
agGridFilterParams?: {
|
|
95
|
+
filterOptions: IFilterOptionDef[];
|
|
96
|
+
};
|
|
97
|
+
tabUuid?: UUID;
|
|
98
|
+
columnType?: ColumnTypes;
|
|
99
|
+
columnWidth?: number;
|
|
100
|
+
fractionDigits?: number;
|
|
101
|
+
isDefaultSort?: boolean;
|
|
102
|
+
numeric?: boolean;
|
|
103
|
+
forceDisplayFilterIcon?: boolean;
|
|
104
|
+
tabIndex?: number;
|
|
105
|
+
isCustomColumn?: boolean;
|
|
106
|
+
Menu?: React.ComponentType<any>;
|
|
107
|
+
filterComponent?: ComponentType<F>;
|
|
108
|
+
filterComponentParams?: Omit<F, 'colId' | 'api'>;
|
|
109
|
+
sortParams?: SortParams;
|
|
110
|
+
}
|
|
111
|
+
export type CustomCellType = {
|
|
112
|
+
cellValue: number;
|
|
113
|
+
tooltipValue: number;
|
|
114
|
+
};
|
|
115
|
+
export interface ValidationError {
|
|
116
|
+
error: string;
|
|
117
|
+
}
|
|
118
|
+
export type CustomAggridValue = boolean | string | number | CustomCellType | ValidationError;
|
|
119
|
+
export interface CustomColDef<TData = any, F extends CustomAggridFilterParams = CustomAggridFilterParams> extends ColDef<TData, CustomAggridValue> {
|
|
120
|
+
colId: string;
|
|
121
|
+
context?: ColumnContext<F>;
|
|
122
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
var TableType = /* @__PURE__ */ ((TableType2) => {
|
|
2
|
+
TableType2["Loadflow"] = "Loadflow";
|
|
3
|
+
TableType2["SecurityAnalysis"] = "SecurityAnalysis";
|
|
4
|
+
TableType2["SensitivityAnalysis"] = "SensitivityAnalysis";
|
|
5
|
+
TableType2["ShortcircuitAnalysis"] = "ShortcircuitAnalysis";
|
|
6
|
+
TableType2["DynamicSimulation"] = "DynamicSimulation";
|
|
7
|
+
TableType2["Spreadsheet"] = "Spreadsheet";
|
|
8
|
+
TableType2["Logs"] = "Logs";
|
|
9
|
+
TableType2["StateEstimation"] = "StateEstimation";
|
|
10
|
+
TableType2["PccMin"] = "PccMin";
|
|
11
|
+
TableType2["VoltageInit"] = "VoltageInit";
|
|
12
|
+
return TableType2;
|
|
13
|
+
})(TableType || {});
|
|
14
|
+
var FilterDataTypes = /* @__PURE__ */ ((FilterDataTypes2) => {
|
|
15
|
+
FilterDataTypes2["TEXT"] = "text";
|
|
16
|
+
FilterDataTypes2["NUMBER"] = "number";
|
|
17
|
+
FilterDataTypes2["BOOLEAN"] = "boolean";
|
|
18
|
+
return FilterDataTypes2;
|
|
19
|
+
})(FilterDataTypes || {});
|
|
20
|
+
var FilterTextComparators = /* @__PURE__ */ ((FilterTextComparators2) => {
|
|
21
|
+
FilterTextComparators2["EQUALS"] = "equals";
|
|
22
|
+
FilterTextComparators2["CONTAINS"] = "contains";
|
|
23
|
+
FilterTextComparators2["STARTS_WITH"] = "startsWith";
|
|
24
|
+
FilterTextComparators2["IS_EMPTY"] = "blank";
|
|
25
|
+
FilterTextComparators2["IS_NOT_EMPTY"] = "notBlank";
|
|
26
|
+
return FilterTextComparators2;
|
|
27
|
+
})(FilterTextComparators || {});
|
|
28
|
+
var FilterNumberComparators = /* @__PURE__ */ ((FilterNumberComparators2) => {
|
|
29
|
+
FilterNumberComparators2["EQUALS"] = "equals";
|
|
30
|
+
FilterNumberComparators2["NOT_EQUAL"] = "notEqual";
|
|
31
|
+
FilterNumberComparators2["LESS_THAN_OR_EQUAL"] = "lessThanOrEqual";
|
|
32
|
+
FilterNumberComparators2["GREATER_THAN_OR_EQUAL"] = "greaterThanOrEqual";
|
|
33
|
+
return FilterNumberComparators2;
|
|
34
|
+
})(FilterNumberComparators || {});
|
|
35
|
+
var UndisplayedFilterNumberComparators = /* @__PURE__ */ ((UndisplayedFilterNumberComparators2) => {
|
|
36
|
+
UndisplayedFilterNumberComparators2["GREATER_THAN"] = "greaterThan";
|
|
37
|
+
UndisplayedFilterNumberComparators2["LESS_THAN"] = "lessThan";
|
|
38
|
+
return UndisplayedFilterNumberComparators2;
|
|
39
|
+
})(UndisplayedFilterNumberComparators || {});
|
|
40
|
+
var SortWay = /* @__PURE__ */ ((SortWay2) => {
|
|
41
|
+
SortWay2["ASC"] = "asc";
|
|
42
|
+
SortWay2["DESC"] = "desc";
|
|
43
|
+
return SortWay2;
|
|
44
|
+
})(SortWay || {});
|
|
45
|
+
var ColumnTypes = /* @__PURE__ */ ((ColumnTypes2) => {
|
|
46
|
+
ColumnTypes2["TEXT"] = "TEXT";
|
|
47
|
+
ColumnTypes2["ENUM"] = "ENUM";
|
|
48
|
+
ColumnTypes2["NUMBER"] = "NUMBER";
|
|
49
|
+
ColumnTypes2["BOOLEAN"] = "BOOLEAN";
|
|
50
|
+
return ColumnTypes2;
|
|
51
|
+
})(ColumnTypes || {});
|
|
52
|
+
export {
|
|
53
|
+
ColumnTypes,
|
|
54
|
+
FilterDataTypes,
|
|
55
|
+
FilterNumberComparators,
|
|
56
|
+
FilterTextComparators,
|
|
57
|
+
SortWay,
|
|
58
|
+
TableType,
|
|
59
|
+
UndisplayedFilterNumberComparators
|
|
60
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* displays a rounding precision like this : 'Rounded to 10^decimalAfterDot' or as a decimal number if decimalAfterDot <= 4
|
|
4
|
+
*/
|
|
5
|
+
interface DisplayRoundingProps {
|
|
6
|
+
decimalAfterDot: number;
|
|
7
|
+
}
|
|
8
|
+
export declare function DisplayRounding({ decimalAfterDot }: Readonly<DisplayRoundingProps>): React.JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useIntl } from "react-intl";
|
|
3
|
+
import { FormHelperText, Box } from "@mui/material";
|
|
4
|
+
const styles = {
|
|
5
|
+
exponent: {
|
|
6
|
+
position: "relative",
|
|
7
|
+
bottom: "1ex",
|
|
8
|
+
fontSize: "80%"
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
function DisplayRounding({ decimalAfterDot }) {
|
|
12
|
+
const intl = useIntl();
|
|
13
|
+
const roundedTo1 = decimalAfterDot === 0;
|
|
14
|
+
const displayAsPower10 = decimalAfterDot > 4;
|
|
15
|
+
const baseMessage = `${intl.formatMessage({
|
|
16
|
+
id: roundedTo1 ? "filter.roundedToOne" : "filter.rounded"
|
|
17
|
+
})} `;
|
|
18
|
+
const decimalAfterDotStr = -decimalAfterDot;
|
|
19
|
+
let roundingPrecision = null;
|
|
20
|
+
if (!roundedTo1) {
|
|
21
|
+
roundingPrecision = displayAsPower10 ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
22
|
+
"10",
|
|
23
|
+
/* @__PURE__ */ jsx(Box, { component: "span", sx: styles.exponent, children: decimalAfterDotStr })
|
|
24
|
+
] }) : 1 / 10 ** decimalAfterDot;
|
|
25
|
+
}
|
|
26
|
+
return /* @__PURE__ */ jsxs(FormHelperText, { children: [
|
|
27
|
+
baseMessage,
|
|
28
|
+
roundingPrecision
|
|
29
|
+
] });
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
DisplayRounding
|
|
33
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, RTE (http://www.rte-france.com)
|
|
3
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
4
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
|
+
*/
|
|
7
|
+
export * from './use-custom-aggrid-sort';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { GridApi } from 'ag-grid-community';
|
|
2
|
+
import { SortParams } from '../custom-aggrid-types';
|
|
3
|
+
export declare const useCustomAggridSort: (colId: string, sortParams?: SortParams, api?: GridApi) => {
|
|
4
|
+
columnSort: import('..').SortConfig | undefined;
|
|
5
|
+
handleSortChange: () => void;
|
|
6
|
+
};
|