* {
* filterConditions: {
* Country: [
* {
* operator: "EQ"
* validated: "NotValidated"
* values: ["Germany", ...]
* },
* ...
* ]
* ...
* },
* currentTabId: "fe::CustomTab::tab1",
* refreshCause: "tabChanged" | "search" | "forcedRefresh"
* }
*
* @public
*/
// eslint-disable-next-line @typescript-eslint/no-unused-vars
onViewNeedsRefresh(mParameters: unknown): void;
/**
* Method called when a filter or search value has been changed in the FilterBar,
* but has not been validated yet by the end user with the 'Go' or 'Search' button.
* Typically, the content of the current tab is greyed out until the filters are validated.
* This method can be overwritten by the controller extension for customization.
* @public
*/
onPendingFilters(): void;
/**
* Method called when the 'Clear' button on the FilterBar is pressed.
* @public
*/
onAfterClear(): void;
}
}
// For Library Version: 1.148.1
declare module "sap/fe/templates/library" {}
declare module "sap/fe/templates/ListReport/ExtensionAPI" {
import ExtensionAPI1 from "sap/fe/core/ExtensionAPI";
import Context from "sap/ui/model/odata/v4/Context";
/**
* Extension API for list reports in SAP Fiori elements for OData V4.
* To correctly integrate your app extension coding with SAP Fiori elements, use only the extensionAPI of
* SAP Fiori elements. Don't access or manipulate controls, properties, models, or other internal objects
* created by the SAP Fiori elements framework.
*
*
* @since 1.79.0
*/
export default class ExtensionAPI extends ExtensionAPI1 {
/**
* This method converts the filter conditions to filters.
*
*
* @returns Object containing the converted FilterBar filters or undefined.
*/
createFiltersFromFilterConditions(
/**
* Map containing the filter conditions of the FilterBar.
*/
mFilterConditions: Record<
string,
/* was: sap.ui.mdc.condition.Condition.ConditionObject */ any[]
>
): object | undefined;
/**
* Provides all the model filters from the filter bar that are currently active
* along with the search expression.
*
*
* @returns An array of active filters and the search expression or undefined.
*/
getFilters(): /* was: sap.fe.macros.table.Utils.InternalBindingInfo */
| any
| undefined;
/**
* Gets the list entries currently selected for the displayed control.
*
*
* @returns Array containing the selected contexts
*/
getSelectedContexts(): Context[];
/**
* Refreshes the List Report.
* This method currently only supports triggering the search (by clicking on the GO button)
* in the List Report Filter Bar. It can be used to request the initial load or to refresh the
* currently shown data based on the filters entered by the user.
* Please note: The Promise is resolved once the search is triggered and not once the data is returned.
*
*
* @returns Resolved once the data is refreshed or rejected if the request failed
*/
refresh(): Promise