import { WithSearch } from '../search/with_search/with_search'; /** * Returns the default config to use if no config, or an incomplete config has * been provided in the env, which can happen with standalone views. * @returns {Config} */ export function getDefaultConfig(): Config; export class ViewNotFoundError extends Error { } /** @extends {Component} */ export class View { static _download: () => Promise; static template: string; static components: { WithSearch: typeof WithSearch; }; static searchMenuTypes: string[]; static canOrderByCount: boolean; static defaultProps: { display: {}; context: {}; loadActionMenus: boolean; loadIrFilters: boolean; className: string; }; static props: { "*": boolean; }; setup(): void; viewService: { loadViews: (params: LoadViewsParams, options?: import('./view_service').LoadViewsOptions | undefined) => Promise; } | undefined; withSearchProps: any; handleActionLinks: ((ev: any) => void) | undefined; /** * @param {ViewProps} props */ loadView(props: ViewProps): Promise; Controller: any; componentProps: object | undefined; /** * @param {ViewProps} nextProps */ onWillUpdateProps(nextProps: ViewProps): Promise | undefined; } export type Config = { actionId: number | false; actionType: string | false; actionFlags: Record; breadcrumbs: () => []; getDisplayName: () => string; setDisplayName: (string: any) => any; getPagerProps: () => Record; viewSwitcherEntry: Record[]; Banner: typeof Component; }; export type Context = import('../core/context').Context; export type OdooEnv = import('../env').OdooEnv; export type OrderTerm = import('../search/utils/order_by').OrderTerm; export type ViewProps = { resModel: string; type: ViewType; /** * if given, fields must be given too /\ no post processing is done (evaluation of "groups" attribute,...) */ /** * if given, fields must be given too /\ no post processing is done (evaluation of "groups" attribute,...) */ arch?: string | undefined; /** * if given, arch must be given too */ /** * if given, arch must be given too */ fields?: Record | undefined; viewId?: number | false | undefined; actionMenus?: Record | undefined; loadActionMenus?: boolean | undefined; /** * if given, searchViewFields must be given too */ /** * if given, searchViewFields must be given too */ searchViewArch?: string | undefined; /** * if given, searchViewArch must be given too */ /** * if given, searchViewArch must be given too */ searchViewFields?: Record | undefined; searchViewId?: number | false | undefined; irFilters?: Record[] | undefined; loadIrFilters?: boolean | undefined; comparison?: Record | undefined; context?: import('../core/context').Context | undefined; domain?: any; groupBy?: string[] | undefined; orderBy?: import('../search/utils/order_by').OrderTerm[] | undefined; useSampleModel?: boolean | undefined; noContentHelp?: string | undefined; /** * to rework * * --- Manipulated by withSearch --- */ /** * to rework * * --- Manipulated by withSearch --- */ display?: Record | undefined; activateFavorite?: boolean | undefined; dynamicFilters?: Record[] | undefined; hideCustomGroupBy?: boolean | undefined; searchMenuTypes?: string[] | undefined; globalState?: Record | undefined; }; export type ViewType = "activity" | "calendar" | "cohort" | "form" | "gantt" | "graph" | "grid" | "hierarchy" | "kanban" | "list" | "map" | "pivot" | "search";