@gridsuite/commons-ui 0.238.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-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.d.ts +1 -1
- 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/expert/ExpertFilterEditionDialog.d.ts +1 -1
- package/dist/components/composite/filter/expert/ExpertFilterForm.d.ts +1 -1
- 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/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 +67 -0
- 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.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/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/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/directory-item-input/directory-item-input.d.ts +1 -1
- 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/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 +1 -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 +7 -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 +6 -0
- package/dist/features/network-modifications/battery/creation/batteryCreation.utils.js +6 -0
- package/dist/features/network-modifications/battery/modification/BatteryDialogHeader.d.ts +1 -1
- package/dist/features/network-modifications/battery/modification/BatteryDialogHeader.js +6 -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 +6 -0
- package/dist/features/network-modifications/battery/modification/BatteryModificationForm.d.ts +1 -1
- package/dist/features/network-modifications/battery/modification/batteryModification.utils.js +7 -1
- package/dist/features/network-modifications/by-filter/assignment/assignment/assignment-form.d.ts +1 -1
- package/dist/features/network-modifications/by-filter/assignment/modification-by-assignment-form.d.ts +1 -1
- package/dist/features/network-modifications/by-filter/deletion/ByFilterDeletionForm.d.ts +1 -1
- package/dist/features/network-modifications/common/activePowerControl/ActivePowerControlForm.d.ts +1 -1
- 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/PositionForm.d.ts +1 -1
- package/dist/features/network-modifications/common/connectivity/VoltageLevelConnectivityForm.d.ts +1 -1
- 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 +6 -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/branchActiveReactivePowerForm.utils.js +1 -1
- package/dist/features/network-modifications/common/properties/PropertiesForm.d.ts +1 -1
- package/dist/features/network-modifications/common/properties/PropertyForm.d.ts +1 -1
- package/dist/features/network-modifications/common/reactiveLimits/ReactiveLimitsForm.d.ts +1 -1
- package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveRowForm.d.ts +1 -1
- package/dist/features/network-modifications/common/reactiveLimits/reactiveCapabilityCurve/ReactiveCapabilityCurveTableForm.d.ts +1 -1
- 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/setpoints/SetPointsForm.d.ts +1 -1
- package/dist/features/network-modifications/common/shortCircuit/ShortCircuitForm.d.ts +1 -1
- package/dist/features/network-modifications/common/voltageRegulation/VoltageRegulationForm.d.ts +1 -1
- 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 +6 -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/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 +6 -0
- package/dist/features/network-modifications/generator/creation/generatorCreation.utils.js +7 -1
- package/dist/features/network-modifications/generator/modification/GeneratorDialogHeader.d.ts +1 -1
- package/dist/features/network-modifications/generator/modification/GeneratorDialogHeader.js +6 -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 +6 -0
- package/dist/features/network-modifications/generator/modification/GeneratorModificationForm.d.ts +1 -1
- package/dist/features/network-modifications/generator/modification/generatorModification.utils.js +7 -1
- package/dist/features/network-modifications/load/common/LoadDialogHeader.d.ts +1 -1
- package/dist/features/network-modifications/load/common/LoadDialogHeader.js +6 -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/modification/loadModification.utils.js +6 -0
- package/dist/features/network-modifications/shunt-compensator/common/CharacteristicsForm.d.ts +1 -1
- 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 +6 -0
- package/dist/features/network-modifications/shunt-compensator/creation/shuntCompensatorCreation.utils.js +6 -0
- package/dist/features/network-modifications/shunt-compensator/modification/ShuntCompensatorModificationForm.d.ts +1 -1
- package/dist/features/network-modifications/shunt-compensator/modification/ShuntCompensatorModificationForm.js +6 -0
- package/dist/features/network-modifications/shunt-compensator/modification/shuntCompensatorModification.utils.js +6 -0
- package/dist/features/network-modifications/substation/creation/SubstationCreationForm.d.ts +1 -1
- package/dist/features/network-modifications/substation/creation/SubstationCreationForm.js +6 -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 +6 -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 +7 -1
- package/dist/features/network-modifications/voltageLevel/creation/index.js +6 -0
- package/dist/features/network-modifications/voltageLevel/creation/tabs/characteristicsTab/CharacteristicsTab.d.ts +1 -1
- package/dist/features/network-modifications/voltageLevel/creation/tabs/structureTab/StructureTab.d.ts +1 -1
- 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/switchesBetweenSections/SwitchesBetweenSections.d.ts +1 -1
- 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 +6 -0
- package/dist/features/network-modifications/voltageLevel/creation/tabs/substationTab/SubstationTab.d.ts +1 -1
- package/dist/features/network-modifications/voltageLevel/creation/voltageLevelCreation.utils.js +9 -3
- package/dist/features/network-modifications/voltageLevel/index.js +6 -0
- package/dist/features/network-modifications/voltageLevel/modification/VoltageLevelModificationForm.d.ts +1 -1
- package/dist/features/network-modifications/voltageLevel/modification/VoltageLevelModificationForm.js +7 -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/computing-type.d.ts +1 -19
- package/dist/features/parameters/common/computing-type.js +16 -26
- 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-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-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/parameter-field.d.ts +1 -1
- package/dist/features/parameters/common/parameter-table-field/parameter-table-field.d.ts +1 -1
- 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-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-group.d.ts +1 -1
- package/dist/features/parameters/common/widget/parameter-line-directory-items-input.d.ts +1 -1
- package/dist/features/parameters/common/widget/parameter-line-slider.d.ts +1 -1
- 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-inline.d.ts +2 -2
- package/dist/features/parameters/dynamic-margin-calculation/loads-variations-parameters.d.ts +1 -1
- package/dist/features/parameters/dynamic-margin-calculation/time-delay-parameters.d.ts +1 -1
- package/dist/features/parameters/dynamic-security-analysis/contingency-parameters.d.ts +1 -1
- package/dist/features/parameters/dynamic-security-analysis/contingency-parameters.js +2 -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-parameters-form.d.ts +1 -1
- package/dist/features/parameters/dynamic-security-analysis/dynamic-security-analysis-parameters-form.js +2 -2
- package/dist/features/parameters/dynamic-security-analysis/scenario-parameters.d.ts +1 -1
- 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/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 +6 -0
- 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-parameters-form.d.ts +1 -1
- package/dist/features/parameters/dynamic-simulation/dynamic-simulation-parameters-form.js +2 -2
- package/dist/features/parameters/dynamic-simulation/mapping/mapping-parameters.d.ts +1 -1
- 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/index.js +1 -2
- package/dist/features/parameters/loadflow/load-flow-general-parameters.d.ts +1 -1
- package/dist/features/parameters/loadflow/load-flow-parameters-content.d.ts +1 -1
- package/dist/features/parameters/loadflow/load-flow-parameters-content.js +3 -3
- package/dist/features/parameters/loadflow/load-flow-parameters-dialog.d.ts +1 -1
- package/dist/features/parameters/loadflow/load-flow-parameters-dialog.js +6 -11
- package/dist/features/parameters/loadflow/load-flow-parameters-form.d.ts +1 -1
- package/dist/features/parameters/loadflow/load-flow-parameters-header.d.ts +1 -1
- package/dist/features/parameters/loadflow/load-flow-parameters-inline.d.ts +2 -3
- package/dist/features/parameters/loadflow/load-flow-parameters-provider.d.ts +1 -1
- package/dist/features/parameters/loadflow/load-flow-parameters-utils.js +6 -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 +4 -4
- package/dist/features/parameters/network-visualizations/map-parameters.d.ts +1 -1
- package/dist/features/parameters/network-visualizations/map-parameters.js +2 -2
- package/dist/features/parameters/network-visualizations/network-area-diagram-parameters.d.ts +1 -1
- package/dist/features/parameters/network-visualizations/network-visualizations-form.d.ts +1 -1
- package/dist/features/parameters/network-visualizations/network-visualizations-parameters-dialog.d.ts +1 -1
- package/dist/features/parameters/network-visualizations/network-visualizations-parameters-inline.d.ts +1 -1
- 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 +2 -2
- package/dist/features/parameters/pcc-min/pcc-min-parameters-dialog.d.ts +1 -1
- package/dist/features/parameters/pcc-min/pcc-min-parameters-form.d.ts +1 -1
- package/dist/features/parameters/pcc-min/pcc-min-parameters-inline.d.ts +1 -1
- package/dist/features/parameters/security-analysis/columns-definitions.js +6 -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 +10 -15
- package/dist/features/parameters/security-analysis/security-analysis-parameters-form.d.ts +1 -1
- package/dist/features/parameters/security-analysis/security-analysis-parameters-inline.d.ts +2 -3
- 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 +1 -1
- package/dist/features/parameters/security-analysis/security-analysis-violations-hiding.d.ts +1 -1
- package/dist/features/parameters/security-analysis/use-security-analysis-parameters-form.d.ts +2 -2
- package/dist/features/parameters/sensi/columns-definitions.d.ts +6 -6
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-dialog.d.ts +1 -1
- package/dist/features/parameters/sensi/sensitivity-analysis-parameters-dialog.js +5 -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-inline.d.ts +2 -3
- package/dist/features/parameters/sensi/sensitivity-parameters-fields.d.ts +1 -1
- package/dist/features/parameters/sensi/sensitivity-parameters-selector.d.ts +1 -1
- package/dist/features/parameters/sensi/sensitivity-parameters-selector.js +1 -1
- package/dist/features/parameters/sensi/use-sensitivity-analysis-parameters.d.ts +1 -2
- 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-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-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 +1 -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 +1 -6
- package/dist/features/parameters/short-circuit/short-circuit-parameters-form.d.ts +1 -1
- package/dist/features/parameters/short-circuit/short-circuit-parameters-inline.d.ts +2 -3
- package/dist/features/parameters/short-circuit/short-circuit-parameters-utils.js +7 -7
- package/dist/features/parameters/short-circuit/short-circuit-power-electronics-tab-panel.js +2 -2
- package/dist/features/parameters/short-circuit/short-circuit-study-area-tab-panel.js +3 -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/voltage-init/equipment-selection-parameters.d.ts +1 -1
- package/dist/features/parameters/voltage-init/general-parameters.d.ts +1 -1
- package/dist/features/parameters/voltage-init/general-parameters.js +3 -3
- package/dist/features/parameters/voltage-init/voltage-init-form-utils.js +2 -2
- package/dist/features/parameters/voltage-init/voltage-init-parameters-dialog.d.ts +1 -1
- 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 +1 -1
- package/dist/features/parameters/voltage-init/voltage-init-parameters-inline.d.ts +1 -1
- package/dist/features/parameters/voltage-init/voltage-limits-parameters.d.ts +1 -1
- 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 +6 -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 +2 -0
- package/dist/features/process-configs/update-process-config-modifications.d.ts +1 -1
- package/dist/features/process-configs/update-process-config-modifications.js +6 -0
- package/dist/features/results/securityanalysis/security-analysis-result-nmk.d.ts +1 -1
- package/dist/features/results/securityanalysis/security-analysis-result-nmk.js +6 -0
- package/dist/features/results/securityanalysis/security-analysis-table.d.ts +1 -1
- package/dist/features/results/securityanalysis/security-analysis-table.js +6 -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 +73 -4
- 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/topBarEn.d.ts +12 -0
- package/dist/translations/en/topBarEn.js +13 -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 +4 -1
- package/dist/utils/mapper/getFileIcon.d.ts +1 -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/index.d.ts +1 -0
- package/dist/utils/types/index.js +2 -0
- package/dist/utils/types/parameters.type.d.ts +1 -1
- package/dist/utils/types/types.d.ts +11 -0
- package/package.json +2 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { useCallback } from "react";
|
|
2
|
+
import "../../../../utils/conversionUtils.js";
|
|
3
|
+
import { snackWithFallback } from "../../../../utils/error.js";
|
|
4
|
+
import "../../../../utils/types/equipmentType.js";
|
|
5
|
+
import "react/jsx-runtime";
|
|
6
|
+
import "@mui/icons-material";
|
|
7
|
+
import "react-intl";
|
|
8
|
+
import "@mui/material";
|
|
9
|
+
import "localized-countries";
|
|
10
|
+
import "localized-countries/data/fr";
|
|
11
|
+
import "localized-countries/data/en";
|
|
12
|
+
import { useSnackMessage } from "../../../../hooks/useSnackMessage.js";
|
|
13
|
+
import { SortWay } from "../custom-aggrid-types.js";
|
|
14
|
+
import { useCustomAggridSortContext } from "../context/custom-aggrid-context.js";
|
|
15
|
+
const useCustomAggridSort = (colId, sortParams, api) => {
|
|
16
|
+
const { getSortConfig, setSortConfig } = useCustomAggridSortContext();
|
|
17
|
+
const { snackError } = useSnackMessage();
|
|
18
|
+
const sortConfig = getSortConfig(sortParams);
|
|
19
|
+
const columnSort = sortConfig?.find((value) => value.colId === colId);
|
|
20
|
+
const isColumnSorted = !!columnSort;
|
|
21
|
+
const handleSortChange = useCallback(() => {
|
|
22
|
+
if (!sortParams || !sortConfig) {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
let newSort;
|
|
26
|
+
if (!isColumnSorted) {
|
|
27
|
+
newSort = SortWay.ASC;
|
|
28
|
+
} else if (columnSort.sort === SortWay.DESC) {
|
|
29
|
+
newSort = SortWay.ASC;
|
|
30
|
+
} else {
|
|
31
|
+
newSort = SortWay.DESC;
|
|
32
|
+
}
|
|
33
|
+
const updatedSortConfig = sortConfig.filter((sort) => (sort.children ?? false) !== (sortParams.isChildren ?? false)).concat({ colId, sort: newSort, children: sortParams.isChildren });
|
|
34
|
+
if (sortParams && sortParams.persistSort && updatedSortConfig?.[0] && api) {
|
|
35
|
+
sortParams.persistSort(api, updatedSortConfig[0]).catch((error) => snackWithFallback(snackError, error));
|
|
36
|
+
}
|
|
37
|
+
setSortConfig(sortParams, updatedSortConfig);
|
|
38
|
+
}, [sortParams, sortConfig, isColumnSorted, columnSort?.sort, colId, api, setSortConfig, snackError]);
|
|
39
|
+
return { columnSort, handleSortChange };
|
|
40
|
+
};
|
|
41
|
+
export {
|
|
42
|
+
useCustomAggridSort
|
|
43
|
+
};
|
|
@@ -8,3 +8,12 @@ export * from './customAggrid.style';
|
|
|
8
8
|
export * from './customAggrid';
|
|
9
9
|
export * from './separatorCellRenderer';
|
|
10
10
|
export * from './cell-renderers';
|
|
11
|
+
export * from './context';
|
|
12
|
+
export * from './hooks';
|
|
13
|
+
export * from './custom-aggrid-filters';
|
|
14
|
+
export * from './custom-aggrid-types';
|
|
15
|
+
export * from './custom-aggrid-header';
|
|
16
|
+
export * from './custom-aggrid-menu';
|
|
17
|
+
export * from './custom-aggrid-sort';
|
|
18
|
+
export * from './display-rounding';
|
|
19
|
+
export * from './utils';
|
|
@@ -2,17 +2,61 @@ import { CUSTOM_AGGRID_THEME, styles } from "./customAggrid.style.js";
|
|
|
2
2
|
import { CustomAGGrid } from "./customAggrid.js";
|
|
3
3
|
import { SeparatorCellRenderer } from "./separatorCellRenderer.js";
|
|
4
4
|
import { BooleanCellRenderer, BooleanNullableCellRenderer, ContingencyCellRenderer, DefaultCellRenderer, ErrorCellRenderer, MessageLogCellRenderer, NetworkModificationNameCellRenderer, NumericCellRenderer } from "./cell-renderers.js";
|
|
5
|
+
import { CustomAggridFilterContext, CustomAggridSortContext, useCustomAggridFilterContext, useCustomAggridSortContext } from "./context/custom-aggrid-context.js";
|
|
6
|
+
import { useCustomAggridSort } from "./hooks/use-custom-aggrid-sort.js";
|
|
7
|
+
import { CustomAggridAutocompleteFilter } from "./custom-aggrid-filters/custom-aggrid-autocomplete-filter.js";
|
|
8
|
+
import { CustomAggridComparatorFilter } from "./custom-aggrid-filters/custom-aggrid-comparator-filter.js";
|
|
9
|
+
import { CustomAggridComparatorSelector } from "./custom-aggrid-filters/custom-aggrid-comparator-selector.js";
|
|
10
|
+
import { CustomAggridFilter } from "./custom-aggrid-filters/custom-aggrid-filter.js";
|
|
11
|
+
import { CustomAggridTextFilter } from "./custom-aggrid-filters/custom-aggrid-text-filter.js";
|
|
12
|
+
import { CustomFilterIcon } from "./custom-aggrid-filters/custom-filter-icon.js";
|
|
13
|
+
import { useCustomAggridColumnFilter } from "./custom-aggrid-filters/hooks/use-custom-aggrid-column-filter.js";
|
|
14
|
+
import { useCustomAggridComparatorFilter } from "./custom-aggrid-filters/hooks/use-custom-aggrid-comparator-filter.js";
|
|
15
|
+
import { addToleranceToFilter, computeTolerance } from "./custom-aggrid-filters/utils/filter-tolerance-utils.js";
|
|
16
|
+
import { ColumnTypes, FilterDataTypes, FilterNumberComparators, FilterTextComparators, SortWay, TableType, UndisplayedFilterNumberComparators } from "./custom-aggrid-types.js";
|
|
17
|
+
import { CustomHeaderComponent } from "./custom-aggrid-header.js";
|
|
18
|
+
import { CustomMenu } from "./custom-aggrid-menu.js";
|
|
19
|
+
import { CustomAggridSort } from "./custom-aggrid-sort.js";
|
|
20
|
+
import { DisplayRounding } from "./display-rounding.js";
|
|
21
|
+
import { makeAgGridCustomHeaderColumn } from "./utils/custom-aggrid-header-utils.js";
|
|
5
22
|
export {
|
|
6
23
|
BooleanCellRenderer,
|
|
7
24
|
BooleanNullableCellRenderer,
|
|
8
25
|
CUSTOM_AGGRID_THEME,
|
|
26
|
+
ColumnTypes,
|
|
9
27
|
ContingencyCellRenderer,
|
|
10
28
|
CustomAGGrid,
|
|
29
|
+
CustomAggridAutocompleteFilter,
|
|
30
|
+
CustomAggridComparatorFilter,
|
|
31
|
+
CustomAggridComparatorSelector,
|
|
32
|
+
CustomAggridFilter,
|
|
33
|
+
CustomAggridFilterContext,
|
|
34
|
+
CustomAggridSort,
|
|
35
|
+
CustomAggridSortContext,
|
|
36
|
+
CustomAggridTextFilter,
|
|
37
|
+
CustomFilterIcon,
|
|
38
|
+
CustomHeaderComponent,
|
|
39
|
+
CustomMenu,
|
|
11
40
|
DefaultCellRenderer,
|
|
41
|
+
DisplayRounding,
|
|
12
42
|
ErrorCellRenderer,
|
|
43
|
+
FilterDataTypes,
|
|
44
|
+
FilterNumberComparators,
|
|
45
|
+
FilterTextComparators,
|
|
13
46
|
MessageLogCellRenderer,
|
|
14
47
|
NetworkModificationNameCellRenderer,
|
|
15
48
|
NumericCellRenderer,
|
|
16
49
|
SeparatorCellRenderer,
|
|
17
|
-
|
|
50
|
+
SortWay,
|
|
51
|
+
TableType,
|
|
52
|
+
UndisplayedFilterNumberComparators,
|
|
53
|
+
addToleranceToFilter,
|
|
54
|
+
computeTolerance,
|
|
55
|
+
makeAgGridCustomHeaderColumn,
|
|
56
|
+
styles,
|
|
57
|
+
useCustomAggridColumnFilter,
|
|
58
|
+
useCustomAggridComparatorFilter,
|
|
59
|
+
useCustomAggridFilterContext,
|
|
60
|
+
useCustomAggridSort,
|
|
61
|
+
useCustomAggridSortContext
|
|
18
62
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { TypographyProps } from '@mui/material';
|
|
2
|
-
export declare function SeparatorCellRenderer({ children, sx, ...otherProps }: Readonly<TypographyProps>): import("react
|
|
2
|
+
export declare function SeparatorCellRenderer({ children, sx, ...otherProps }: Readonly<TypographyProps>): import("react").JSX.Element;
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { CustomAggridFilterParams, CustomColDef } from '../custom-aggrid-types';
|
|
2
|
+
export declare const makeAgGridCustomHeaderColumn: <F extends CustomAggridFilterParams = CustomAggridFilterParams>({ context, ...props }: CustomColDef<any, F>) => {
|
|
3
|
+
context: {
|
|
4
|
+
fractionDigits: number | undefined;
|
|
5
|
+
agGridFilterParams?: {
|
|
6
|
+
filterOptions: import('ag-grid-community').IFilterOptionDef[];
|
|
7
|
+
};
|
|
8
|
+
tabUuid?: import('crypto').UUID;
|
|
9
|
+
columnType?: import('..').ColumnTypes;
|
|
10
|
+
columnWidth?: number;
|
|
11
|
+
isDefaultSort?: boolean;
|
|
12
|
+
numeric?: boolean;
|
|
13
|
+
forceDisplayFilterIcon?: boolean;
|
|
14
|
+
tabIndex?: number;
|
|
15
|
+
isCustomColumn?: boolean;
|
|
16
|
+
Menu?: React.ComponentType<any>;
|
|
17
|
+
filterComponent?: import('ag-grid-community').ComponentType<F> | undefined;
|
|
18
|
+
filterComponentParams?: Omit<F, "api" | "colId"> | undefined;
|
|
19
|
+
sortParams?: import('..').SortParams;
|
|
20
|
+
};
|
|
21
|
+
colId: string;
|
|
22
|
+
field?: string | undefined;
|
|
23
|
+
type?: string | string[];
|
|
24
|
+
cellDataType?: boolean | string;
|
|
25
|
+
allowFormula?: boolean;
|
|
26
|
+
valueGetter?: string | import('ag-grid-community').ValueGetterFunc<any, import('..').CustomAggridValue, any> | undefined;
|
|
27
|
+
valueFormatter?: string | import('ag-grid-community').ValueFormatterFunc<any, import('..').CustomAggridValue, any> | undefined;
|
|
28
|
+
refData?: import('ag-grid-community').RefData;
|
|
29
|
+
keyCreator?: import('ag-grid-community').KeyCreatorFunc<any, import('..').CustomAggridValue, any> | undefined;
|
|
30
|
+
equals?: import('ag-grid-community').EqualsFunc<import('..').CustomAggridValue> | undefined;
|
|
31
|
+
tooltipField?: string | undefined;
|
|
32
|
+
tooltipValueGetter?: import('ag-grid-community').TooltipValueGetterFunc<any, import('..').CustomAggridValue, any> | undefined;
|
|
33
|
+
tooltipComponentSelector?: import('ag-grid-community').CellEditorSelectorFunc | import('ag-grid-community').CellRendererSelectorFunc;
|
|
34
|
+
checkboxSelection?: boolean | import('ag-grid-community').CheckboxSelectionCallback<any, import('..').CustomAggridValue, any> | undefined;
|
|
35
|
+
showDisabledCheckboxes?: boolean;
|
|
36
|
+
icons?: import('ag-grid-community').Icons;
|
|
37
|
+
suppressNavigable?: boolean | import('ag-grid-community').SuppressNavigableCallback<any, import('..').CustomAggridValue, any> | undefined;
|
|
38
|
+
suppressNoteActions?: boolean | import('ag-grid-community').SuppressNoteActionsCallback<any, import('..').CustomAggridValue, any> | undefined;
|
|
39
|
+
suppressKeyboardEvent?: import('ag-grid-community').SuppressKeyboardEventFunc<any, import('..').CustomAggridValue, any> | undefined;
|
|
40
|
+
suppressPaste?: boolean | import('ag-grid-community').SuppressPasteCallback<any, import('..').CustomAggridValue, any> | undefined;
|
|
41
|
+
suppressFillHandle?: boolean;
|
|
42
|
+
hide?: boolean | null;
|
|
43
|
+
initialHide?: boolean;
|
|
44
|
+
lockVisible?: boolean;
|
|
45
|
+
lockPosition?: boolean | "left" | "right";
|
|
46
|
+
suppressMovable?: boolean;
|
|
47
|
+
useValueFormatterForExport?: boolean;
|
|
48
|
+
editable?: boolean | import('ag-grid-community').EditableCallback<any, import('..').CustomAggridValue, any> | undefined;
|
|
49
|
+
groupRowEditable?: boolean | import('ag-grid-community').GroupRowEditableCallback<any, import('..').CustomAggridValue> | undefined;
|
|
50
|
+
groupRowValueSetter?: boolean | import('ag-grid-community').GroupRowValueSetterFunc<any, import('..').CustomAggridValue> | import('ag-grid-community').GroupRowValueSetterOptions<any, import('..').CustomAggridValue, any> | undefined;
|
|
51
|
+
valueSetter?: string | import('ag-grid-community').ValueSetterFunc<any, import('..').CustomAggridValue, any> | undefined;
|
|
52
|
+
valueParser?: string | import('ag-grid-community').ValueParserFunc<any, import('..').CustomAggridValue, any> | undefined;
|
|
53
|
+
cellEditor?: any;
|
|
54
|
+
cellEditorParams?: any;
|
|
55
|
+
cellEditorSelector?: import('ag-grid-community').CellEditorSelectorFunc<any, import('..').CustomAggridValue, any> | undefined;
|
|
56
|
+
singleClickEdit?: boolean;
|
|
57
|
+
cellEditorPopup?: boolean;
|
|
58
|
+
cellEditorPopupPosition?: "over" | "under";
|
|
59
|
+
useValueParserForImport?: boolean;
|
|
60
|
+
onCellValueChanged?: ((event: import('ag-grid-community').NewValueParams<any, import('..').CustomAggridValue, any>) => void) | undefined;
|
|
61
|
+
onCellClicked?: ((event: import('ag-grid-community').CellClickedEvent<any, import('..').CustomAggridValue, any>) => void) | undefined;
|
|
62
|
+
onCellDoubleClicked?: ((event: import('ag-grid-community').CellDoubleClickedEvent<any, import('..').CustomAggridValue, any>) => void) | undefined;
|
|
63
|
+
onCellContextMenu?: ((event: import('ag-grid-community').CellContextMenuEvent<any, import('..').CustomAggridValue, any>) => void) | undefined;
|
|
64
|
+
getQuickFilterText?: import('ag-grid-community').GetQuickFilterText<any, import('..').CustomAggridValue, any> | undefined;
|
|
65
|
+
filterValueGetter?: string | import('ag-grid-community').ValueGetterFunc<any, any, any> | undefined;
|
|
66
|
+
floatingFilter?: boolean;
|
|
67
|
+
suppressFloatingFilterButton?: boolean;
|
|
68
|
+
dateComponent?: any;
|
|
69
|
+
dateComponentParams?: any;
|
|
70
|
+
getFindText?: import('ag-grid-community').GetFindTextFunc<any, import('..').CustomAggridValue, any> | undefined;
|
|
71
|
+
headerComponent: any;
|
|
72
|
+
headerComponentParams: any;
|
|
73
|
+
menuTabs?: import('ag-grid-community').ColumnMenuTab[];
|
|
74
|
+
columnChooserParams?: import('ag-grid-community').ColumnChooserParams;
|
|
75
|
+
suppressHeaderMenuButton?: boolean;
|
|
76
|
+
suppressHeaderFilterButton?: boolean;
|
|
77
|
+
mainMenuItems?: (import('ag-grid-community').DefaultMenuItem | import('ag-grid-community').MenuItemDef<any, any>)[] | import('ag-grid-community').GetMainMenuItems<any> | undefined;
|
|
78
|
+
contextMenuItems?: (import('ag-grid-community').DefaultMenuItem | import('ag-grid-community').MenuItemDef<any, any>)[] | import('ag-grid-community').GetContextMenuItems<any> | undefined;
|
|
79
|
+
headerCheckboxSelection?: boolean | import('ag-grid-community').HeaderCheckboxSelectionCallback<any, import('..').CustomAggridValue, any> | undefined;
|
|
80
|
+
headerCheckboxSelectionFilteredOnly?: boolean;
|
|
81
|
+
headerCheckboxSelectionCurrentPageOnly?: boolean;
|
|
82
|
+
chartDataType?: "category" | "series" | "time" | "excluded";
|
|
83
|
+
pinned?: boolean | "left" | "right" | null;
|
|
84
|
+
initialPinned?: boolean | "left" | "right";
|
|
85
|
+
lockPinned?: boolean;
|
|
86
|
+
pivot?: boolean | null;
|
|
87
|
+
initialPivot?: boolean;
|
|
88
|
+
pivotIndex?: number | null;
|
|
89
|
+
initialPivotIndex?: number;
|
|
90
|
+
pivotComparator?: import('ag-grid-community').PivotComparatorFunc;
|
|
91
|
+
enablePivot?: boolean;
|
|
92
|
+
cellStyle?: import('ag-grid-community').CellStyle | import('ag-grid-community').CellStyleFunc<any, import('..').CustomAggridValue, any> | undefined;
|
|
93
|
+
cellClass?: string | string[] | import('ag-grid-community').CellClassFunc<any, import('..').CustomAggridValue, any> | undefined;
|
|
94
|
+
cellClassRules?: import('ag-grid-community').CellClassRules<any, import('..').CustomAggridValue, any> | undefined;
|
|
95
|
+
cellRenderer?: any;
|
|
96
|
+
cellRendererParams?: any;
|
|
97
|
+
cellRendererSelector?: import('ag-grid-community').CellRendererSelectorFunc<any, import('..').CustomAggridValue, any> | undefined;
|
|
98
|
+
loadingCellRenderer?: any;
|
|
99
|
+
loadingCellRendererParams?: any;
|
|
100
|
+
loadingCellRendererSelector?: import('ag-grid-community').ILoadingCellRendererSelectorFunc<any, import('..').CustomAggridValue, any> | undefined;
|
|
101
|
+
autoHeight?: boolean;
|
|
102
|
+
wrapText?: boolean;
|
|
103
|
+
enableCellChangeFlash?: boolean;
|
|
104
|
+
rowDrag?: boolean | import('ag-grid-community').RowDragCallback<any, import('..').CustomAggridValue, any> | undefined;
|
|
105
|
+
rowDragText?: import('ag-grid-community').RowDragTextFunc;
|
|
106
|
+
dndSource?: boolean | import('ag-grid-community').DndSourceCallback<any, import('..').CustomAggridValue, any> | undefined;
|
|
107
|
+
dndSourceOnRowDrag?: import('ag-grid-community').DndSourceOnRowDragFunc<any, any> | undefined;
|
|
108
|
+
rowGroup?: boolean | null;
|
|
109
|
+
initialRowGroup?: boolean;
|
|
110
|
+
rowGroupIndex?: number | null;
|
|
111
|
+
initialRowGroupIndex?: number;
|
|
112
|
+
enableRowGroup?: boolean;
|
|
113
|
+
enableValue?: boolean;
|
|
114
|
+
aggFunc?: string | import('ag-grid-community').IAggFunc<any, import('..').CustomAggridValue, any> | null | undefined;
|
|
115
|
+
initialAggFunc?: string | import('ag-grid-community').IAggFunc<any, import('..').CustomAggridValue, any> | undefined;
|
|
116
|
+
defaultAggFunc?: string;
|
|
117
|
+
allowedAggFuncs?: string[];
|
|
118
|
+
rowGroupingHierarchy?: (string | import('ag-grid-community').ColDef<any, import('..').CustomAggridValue>)[] | undefined;
|
|
119
|
+
groupHierarchy?: (string | import('ag-grid-community').ColDef<any, import('..').CustomAggridValue>)[] | undefined;
|
|
120
|
+
showRowGroup?: string | boolean;
|
|
121
|
+
sortable?: boolean;
|
|
122
|
+
sort?: import('ag-grid-community').SortDirection | import('ag-grid-community').SortDef;
|
|
123
|
+
initialSort?: import('ag-grid-community').SortDirection | import('ag-grid-community').SortDef;
|
|
124
|
+
sortIndex?: number | null;
|
|
125
|
+
initialSortIndex?: number;
|
|
126
|
+
sortingOrder?: (import('ag-grid-community').SortDirection | import('ag-grid-community').SortDef)[];
|
|
127
|
+
comparator?: import('ag-grid-community').SortComparatorFn<any, import('..').CustomAggridValue> | Partial<Record<import('ag-grid-community').SortType, import('ag-grid-community').SortComparatorFn<any, import('..').CustomAggridValue>>> | undefined;
|
|
128
|
+
unSortIcon?: boolean;
|
|
129
|
+
colSpan?: import('ag-grid-community').ColSpanFunc<any, import('..').CustomAggridValue, any> | undefined;
|
|
130
|
+
rowSpan?: import('ag-grid-community').RowSpanFunc<any, import('..').CustomAggridValue, any> | undefined;
|
|
131
|
+
spanRows?: boolean | import('ag-grid-community').SpanRowsFunc<any, import('..').CustomAggridValue, any> | undefined;
|
|
132
|
+
width?: number;
|
|
133
|
+
initialWidth?: number;
|
|
134
|
+
minWidth: number;
|
|
135
|
+
maxWidth?: number;
|
|
136
|
+
flex?: number | null;
|
|
137
|
+
initialFlex?: number;
|
|
138
|
+
resizable?: boolean;
|
|
139
|
+
suppressSizeToFit?: boolean;
|
|
140
|
+
suppressAutoSize?: boolean;
|
|
141
|
+
pivotValueColumn?: import('ag-grid-community').Column | null;
|
|
142
|
+
pivotTotalColumnIds?: string[];
|
|
143
|
+
suppressSpanHeaderHeight?: boolean;
|
|
144
|
+
headerName?: string;
|
|
145
|
+
headerValueGetter?: string | import('ag-grid-community').HeaderValueGetterFunc<any, import('..').CustomAggridValue, any> | undefined;
|
|
146
|
+
headerTooltip: string;
|
|
147
|
+
headerTooltipValueGetter?: import('ag-grid-community').HeaderTooltipValueGetterFunc<any, import('..').CustomAggridValue, any> | undefined;
|
|
148
|
+
headerStyle?: import('ag-grid-community').HeaderStyle | import('ag-grid-community').HeaderStyleFunc<any, import('..').CustomAggridValue, any> | undefined;
|
|
149
|
+
headerClass?: import('ag-grid-community').HeaderClass<any, import('..').CustomAggridValue, any> | undefined;
|
|
150
|
+
suppressHeaderKeyboardEvent?: import('ag-grid-community').SuppressHeaderKeyboardEventFunc<any, import('..').CustomAggridValue, any> | undefined;
|
|
151
|
+
columnGroupShow?: import('ag-grid-community').ColumnGroupShowType;
|
|
152
|
+
toolPanelClass?: import('ag-grid-community').ToolPanelClass<any, import('..').CustomAggridValue, any> | undefined;
|
|
153
|
+
suppressColumnsToolPanel?: boolean;
|
|
154
|
+
suppressFiltersToolPanel?: boolean;
|
|
155
|
+
tooltipComponent?: any;
|
|
156
|
+
tooltipComponentParams?: any;
|
|
157
|
+
pivotKeys?: string[];
|
|
158
|
+
cellAriaRole?: string;
|
|
159
|
+
wrapHeaderText?: boolean;
|
|
160
|
+
autoHeaderHeight?: boolean;
|
|
161
|
+
suppressHeaderContextMenu?: boolean;
|
|
162
|
+
filter?: any;
|
|
163
|
+
filterParams: any;
|
|
164
|
+
floatingFilterComponent?: any;
|
|
165
|
+
floatingFilterComponentParams?: any;
|
|
166
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { CustomHeaderComponent } from "../custom-aggrid-header.js";
|
|
2
|
+
const makeAgGridCustomHeaderColumn = ({
|
|
3
|
+
context,
|
|
4
|
+
...props
|
|
5
|
+
// agGrid column props
|
|
6
|
+
}) => {
|
|
7
|
+
const {
|
|
8
|
+
sortParams,
|
|
9
|
+
forceDisplayFilterIcon,
|
|
10
|
+
filterComponent,
|
|
11
|
+
filterComponentParams,
|
|
12
|
+
tabIndex,
|
|
13
|
+
isCustomColumn,
|
|
14
|
+
Menu,
|
|
15
|
+
fractionDigits,
|
|
16
|
+
numeric
|
|
17
|
+
} = context || {};
|
|
18
|
+
const { headerName, field = "" } = props;
|
|
19
|
+
const isSortable = !!sortParams;
|
|
20
|
+
let minWidth = 75;
|
|
21
|
+
if (isSortable) {
|
|
22
|
+
minWidth += 30;
|
|
23
|
+
}
|
|
24
|
+
if (filterComponent) {
|
|
25
|
+
minWidth += 30;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
headerTooltip: headerName,
|
|
29
|
+
minWidth,
|
|
30
|
+
headerComponent: CustomHeaderComponent,
|
|
31
|
+
headerComponentParams: {
|
|
32
|
+
field,
|
|
33
|
+
displayName: headerName,
|
|
34
|
+
sortParams,
|
|
35
|
+
customMenuParams: {
|
|
36
|
+
tabIndex,
|
|
37
|
+
isCustomColumn,
|
|
38
|
+
Menu
|
|
39
|
+
},
|
|
40
|
+
forceDisplayFilterIcon,
|
|
41
|
+
filterComponent,
|
|
42
|
+
filterComponentParams
|
|
43
|
+
},
|
|
44
|
+
filterParams: context?.agGridFilterParams || void 0,
|
|
45
|
+
...props,
|
|
46
|
+
context: {
|
|
47
|
+
...context,
|
|
48
|
+
fractionDigits: numeric && !fractionDigits ? 2 : fractionDigits
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export {
|
|
53
|
+
makeAgGridCustomHeaderColumn
|
|
54
|
+
};
|
|
@@ -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 './custom-aggrid-header-utils';
|
|
@@ -3,5 +3,5 @@ type DeletableTableRowProps = TableRowProps & {
|
|
|
3
3
|
onClick: () => void;
|
|
4
4
|
disabledDeletion?: boolean | null;
|
|
5
5
|
};
|
|
6
|
-
export declare function DeletableTableRow({ onClick, disabledDeletion, children, ...otherProps }: Readonly<DeletableTableRowProps>): import("react
|
|
6
|
+
export declare function DeletableTableRow({ onClick, disabledDeletion, children, ...otherProps }: Readonly<DeletableTableRowProps>): import("react").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -9,5 +9,5 @@ interface DndTableAddRowsDialogProps {
|
|
|
9
9
|
handleAddButton: (rowNumber: number) => void;
|
|
10
10
|
onClose: () => void;
|
|
11
11
|
}
|
|
12
|
-
export declare function DndTableAddRowsDialog({ open, handleAddButton, onClose }: Readonly<DndTableAddRowsDialogProps>): import("react
|
|
12
|
+
export declare function DndTableAddRowsDialog({ open, handleAddButton, onClose }: Readonly<DndTableAddRowsDialogProps>): import("react").JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -13,5 +13,5 @@ interface DndTableBottomLeftButtonsProps {
|
|
|
13
13
|
disableUploadButton?: boolean;
|
|
14
14
|
disabled?: boolean;
|
|
15
15
|
}
|
|
16
|
-
export declare function DndTableBottomLeftButtons({ handleUploadButton, uploadButtonMessageId, handleResetButton, resetButtonMessageId, withResetButton, disableUploadButton, disabled, }: Readonly<DndTableBottomLeftButtonsProps>): import("react
|
|
16
|
+
export declare function DndTableBottomLeftButtons({ handleUploadButton, uploadButtonMessageId, handleResetButton, resetButtonMessageId, withResetButton, disableUploadButton, disabled, }: Readonly<DndTableBottomLeftButtonsProps>): import("react").JSX.Element;
|
|
17
17
|
export {};
|
|
@@ -14,4 +14,4 @@ export interface DndTableBottomRightButtonsProps {
|
|
|
14
14
|
showMoveArrow?: boolean;
|
|
15
15
|
disabled?: boolean;
|
|
16
16
|
}
|
|
17
|
-
export declare function DndTableBottomRightButtons({ arrayFormName, handleAddButton, handleDeleteButton, handleMoveUpButton, handleMoveDownButton, disableAddingRows, showMoveArrow, disabled, }: Readonly<DndTableBottomRightButtonsProps>): import("react
|
|
17
|
+
export declare function DndTableBottomRightButtons({ arrayFormName, handleAddButton, handleDeleteButton, handleMoveUpButton, handleMoveDownButton, disableAddingRows, showMoveArrow, disabled, }: Readonly<DndTableBottomRightButtonsProps>): import("react").JSX.Element;
|
|
@@ -20,4 +20,4 @@ export type DndTableRowProps = TableRowProps & {
|
|
|
20
20
|
multiselect?: boolean;
|
|
21
21
|
nextSnapshotCellWidthSx: (isDragging: boolean) => SxProps<Theme> | undefined;
|
|
22
22
|
};
|
|
23
|
-
export declare function DndTableRow({ rowId, tableName, columnsDefinition, index, provided, snapshot, disableDragAndDrop, disabled, disableTableCell, previousValues, getPreviousValue, isValueModified, disabledDeletion, onChangeRow, onDeleteRow, multiselect, nextSnapshotCellWidthSx, }: Readonly<DndTableRowProps>): import("react
|
|
23
|
+
export declare function DndTableRow({ rowId, tableName, columnsDefinition, index, provided, snapshot, disableDragAndDrop, disabled, disableTableCell, previousValues, getPreviousValue, isValueModified, disabledDeletion, onChangeRow, onDeleteRow, multiselect, nextSnapshotCellWidthSx, }: Readonly<DndTableRowProps>): import("react").JSX.Element;
|
|
@@ -29,4 +29,4 @@ export interface DndTableProps {
|
|
|
29
29
|
onChange?: (changedRow: any) => void;
|
|
30
30
|
onDelete?: (removedRows: any[]) => void;
|
|
31
31
|
}
|
|
32
|
-
export declare function DndTable(props: Readonly<DndTableProps>): import("react
|
|
32
|
+
export declare function DndTable(props: Readonly<DndTableProps>): import("react").JSX.Element;
|
|
@@ -21,4 +21,4 @@ export interface EquipmentItemProps {
|
|
|
21
21
|
equipmentVlTag?: SxStyle;
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
export declare function EquipmentItem({ inputValue, suffixRenderer, element, showsJustText, ...props }: EquipmentItemProps): import("react
|
|
24
|
+
export declare function EquipmentItem({ inputValue, suffixRenderer, element, showsJustText, ...props }: EquipmentItemProps): import("react").JSX.Element;
|
package/dist/components/composite/elementSearch/elementSearchDialog/ElementSearchDialog.d.ts
CHANGED
|
@@ -3,4 +3,4 @@ export interface ElementSearchDialogProps<T> extends ElementSearchInputProps<T>
|
|
|
3
3
|
onClose?: () => void;
|
|
4
4
|
open: boolean;
|
|
5
5
|
}
|
|
6
|
-
export declare function ElementSearchDialog<T>(props: ElementSearchDialogProps<T>): import("react
|
|
6
|
+
export declare function ElementSearchDialog<T>(props: ElementSearchDialogProps<T>): import("react").JSX.Element;
|
|
@@ -17,4 +17,4 @@ export interface ElementSearchInputProps<T> extends Pick<AutocompleteProps<T, fa
|
|
|
17
17
|
searchTermDisableReason?: string;
|
|
18
18
|
showResults?: boolean;
|
|
19
19
|
}
|
|
20
|
-
export declare function ElementSearchInput<T>(props: Readonly<ElementSearchInputProps<T>>): import("react
|
|
20
|
+
export declare function ElementSearchInput<T>(props: Readonly<ElementSearchInputProps<T>>): import("react").JSX.Element;
|
|
@@ -11,4 +11,4 @@ export interface TagRendererProps {
|
|
|
11
11
|
equipmentVlTag?: SxStyle;
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
|
-
export declare function TagRenderer({ element, ...props }: TagRendererProps): import("react
|
|
14
|
+
export declare function TagRenderer({ element, ...props }: TagRendererProps): import("react").JSX.Element | undefined;
|
|
@@ -15,4 +15,4 @@ export interface FilterCreationDialogProps {
|
|
|
15
15
|
};
|
|
16
16
|
isDeveloperMode: boolean;
|
|
17
17
|
}
|
|
18
|
-
export declare function FilterCreationDialog({ open, onClose, activeDirectory, language, sourceFilterForExplicitNamingConversion, filterType, isDeveloperMode, }: FilterCreationDialogProps): import("react
|
|
18
|
+
export declare function FilterCreationDialog({ open, onClose, activeDirectory, language, sourceFilterForExplicitNamingConversion, filterType, isDeveloperMode, }: FilterCreationDialogProps): import("react").JSX.Element;
|
|
@@ -9,7 +9,7 @@ import { CustomMuiDialog } from "../../ui/dialogs/customMuiDialog/CustomMuiDialo
|
|
|
9
9
|
import { getExplicitNamingFilterEmptyFormData, explicitNamingFilterSchema } from "./explicitNaming/ExplicitNamingFilterForm.js";
|
|
10
10
|
import { FieldConstants } from "../../../utils/constants/fieldConstants.js";
|
|
11
11
|
import { FilterForm } from "./FilterForm.js";
|
|
12
|
-
import {
|
|
12
|
+
import { expertFilterSchema, getExpertFilterEmptyFormData } from "./expert/ExpertFilterForm.js";
|
|
13
13
|
import { FilterType } from "./constants/FilterConstants.js";
|
|
14
14
|
import { MAX_CHAR_DESCRIPTION } from "../../../utils/constants/uiConstants.js";
|
|
15
15
|
import { EXPERT_FILTER_QUERY } from "./expert/expertFilterConstants.js";
|
|
@@ -12,4 +12,4 @@ export interface FilterFormProps {
|
|
|
12
12
|
};
|
|
13
13
|
isEditing: boolean;
|
|
14
14
|
}
|
|
15
|
-
export declare function FilterForm({ sourceFilterForExplicitNamingConversion, creation, activeDirectory, filterType, isEditing, }: Readonly<FilterFormProps>): import("react
|
|
15
|
+
export declare function FilterForm({ sourceFilterForExplicitNamingConversion, creation, activeDirectory, filterType, isEditing, }: Readonly<FilterFormProps>): import("react").JSX.Element;
|
|
@@ -23,4 +23,4 @@ export interface HeaderFilterFormProps {
|
|
|
23
23
|
equipmentType: string;
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
-
export declare function HeaderFilterForm({ creation, activeDirectory }: Readonly<HeaderFilterFormProps>): import("react
|
|
26
|
+
export declare function HeaderFilterForm({ creation, activeDirectory }: Readonly<HeaderFilterFormProps>): import("react").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { FilterEditionProps } from '../filter.type';
|
|
2
|
-
export declare function ExpertFilterEditionDialog({ id, name, titleId, open, onClose, broadcastChannel, itemSelectionForCopy, getFilterById, setItemSelectionForCopy, activeDirectory, language, description, isDeveloperMode, }: Readonly<FilterEditionProps>): import("react
|
|
2
|
+
export declare function ExpertFilterEditionDialog({ id, name, titleId, open, onClose, broadcastChannel, itemSelectionForCopy, getFilterById, setItemSelectionForCopy, activeDirectory, language, description, isDeveloperMode, }: Readonly<FilterEditionProps>): import("react").JSX.Element;
|
|
@@ -17,5 +17,5 @@ export declare function getExpertFilterEmptyFormData(): {
|
|
|
17
17
|
interface ExpertFilterFormProps {
|
|
18
18
|
isEditing: boolean;
|
|
19
19
|
}
|
|
20
|
-
export declare function ExpertFilterForm({ isEditing }: Readonly<ExpertFilterFormProps>): import("react
|
|
20
|
+
export declare function ExpertFilterForm({ isEditing }: Readonly<ExpertFilterFormProps>): import("react").JSX.Element;
|
|
21
21
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OperatorType, CombinatorType, DataType } from "./expertFilter.type.js";
|
|
2
2
|
import { FieldType } from "../../../../utils/types/fieldType.js";
|
|
3
|
-
import {
|
|
3
|
+
import { KILO_VOLT, MEGA_WATT, MEGA_VAR, OHM, MICRO_SIEMENS, SIEMENS, MEGA_VOLT_AMPERE, KILO_AMPERE } from "../../../../utils/constants/unitsConstants.js";
|
|
4
4
|
import "../../../../utils/conversionUtils.js";
|
|
5
5
|
import { EquipmentType, ALL_EQUIPMENTS } from "../../../../utils/types/equipmentType.js";
|
|
6
6
|
import "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getParentPath, findPath, defaultOperators, remove } from "react-querybuilder";
|
|
2
2
|
import { validate } from "uuid";
|
|
3
3
|
import { DataType } from "./expertFilter.type.js";
|
|
4
4
|
import { OPERATOR_OPTIONS, RULES, FIELDS_OPTIONS } from "./expertFilterConstants.js";
|
package/dist/components/composite/filter/explicitNaming/ExplicitNamingFilterEditionDialog.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { FilterEditionProps } from '../filter.type';
|
|
2
|
-
export declare function ExplicitNamingFilterEditionDialog({ id, name, titleId, open, onClose, broadcastChannel, itemSelectionForCopy, setItemSelectionForCopy, getFilterById, activeDirectory, language, description, isDeveloperMode, }: Readonly<FilterEditionProps>): import("react
|
|
2
|
+
export declare function ExplicitNamingFilterEditionDialog({ id, name, titleId, open, onClose, broadcastChannel, itemSelectionForCopy, setItemSelectionForCopy, getFilterById, activeDirectory, language, description, isDeveloperMode, }: Readonly<FilterEditionProps>): import("react").JSX.Element;
|
|
@@ -24,5 +24,5 @@ interface ExplicitNamingFilterFormProps {
|
|
|
24
24
|
sourceFilterForExplicitNamingConversion?: FilterForExplicitConversionProps;
|
|
25
25
|
isEditing: boolean;
|
|
26
26
|
}
|
|
27
|
-
export declare function ExplicitNamingFilterForm({ sourceFilterForExplicitNamingConversion, isEditing, }: Readonly<ExplicitNamingFilterFormProps>): import("react
|
|
27
|
+
export declare function ExplicitNamingFilterForm({ sourceFilterForExplicitNamingConversion, isEditing, }: Readonly<ExplicitNamingFilterFormProps>): import("react").JSX.Element;
|
|
28
28
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FieldConstants } from "../../../../utils/constants/fieldConstants.js";
|
|
2
2
|
import { isInjection } from "../../../../utils/types/equipmentTypes.js";
|
|
3
3
|
import { exportExpertRules } from "../expert/expertFilterUtils.js";
|
|
4
|
-
import {
|
|
4
|
+
import { FilterType, DISTRIBUTION_KEY } from "../constants/FilterConstants.js";
|
|
5
5
|
import { createFilter, saveFilter } from "../../../../services/explore.js";
|
|
6
6
|
import "../../../../utils/conversionUtils.js";
|
|
7
7
|
import { catchErrorHandler } from "../../../../utils/error.js";
|
|
@@ -25,4 +25,4 @@ export interface FlatParametersProps {
|
|
|
25
25
|
* @param showSeparator if true, a separator is added between parameters
|
|
26
26
|
* @param selectionWithDialog {(param: {}) => boolean} if true, param with multiple options use dialog for selection
|
|
27
27
|
*/
|
|
28
|
-
export declare function FlatParameters({ paramsAsArray, initValues, onChange, variant, showSeparator, selectionWithDialog, }: FlatParametersProps): import("react
|
|
28
|
+
export declare function FlatParameters({ paramsAsArray, initValues, onChange, variant, showSeparator, selectionWithDialog, }: FlatParametersProps): import("react").JSX.Element;
|
|
@@ -5,4 +5,4 @@ export interface GridItemProps extends PropsWithChildren {
|
|
|
5
5
|
alignItem?: string;
|
|
6
6
|
tooltip?: ReactNode;
|
|
7
7
|
}
|
|
8
|
-
export default function GridItem({ children, size, alignItem, tooltip }: Readonly<GridItemProps>): import("react
|
|
8
|
+
export default function GridItem({ children, size, alignItem, tooltip }: Readonly<GridItemProps>): import("react").JSX.Element;
|
|
@@ -5,4 +5,4 @@ export interface GridSectionProps {
|
|
|
5
5
|
size?: number;
|
|
6
6
|
customStyle?: SxStyle;
|
|
7
7
|
}
|
|
8
|
-
export default function GridSection({ title, heading, size, customStyle }: Readonly<GridSectionProps>): import("react
|
|
8
|
+
export default function GridSection({ title, heading, size, customStyle }: Readonly<GridSectionProps>): import("react").JSX.Element;
|