import React from 'react'; import { FiltersMap } from '@wix/bex-core'; import { AllItemsViewProps, Category, View } from '../../model'; import { ToolbarCollectionState } from '../../state'; import { DropdownProps } from '@wix/design-system'; export interface CollectionViewsDropdownBaseProps { /** * Array of view or category objects that appear as predefined views or groups of views. * @override [Category]()[./?path=%2Fstory%2Fcommon-types--category] | [View](./?path=%2Fstory%2Fcommon-types--view)[] * @external */ presets?: Category[] | Omit, 'createdAt'>[]; /** * Redirect URL for the **Learn More** button in the **Save View** modal. * @external */ learnMoreLink?: string; /** * Function that is called when a view is saved. * @external */ onSaveViewChanges?: (view: View) => void | Promise; /** * Function that is called when a new view is saved. * @external */ onSaveView?: (view: View) => void | Promise; /** * Function that is called when a view is deleted. * @external */ onDeleteView?: (view: View) => void | Promise; /** * Function that is called when a view is renamed. * @external */ onRenameView?: (view: View) => void | Promise; /** * Function that is called when a view is set as the default view. * @external */ onSetAsDefaultView?: (view: View, isDefault: boolean) => void | Promise; /** * Function that is called when a view is selected. * @external */ onSelect?: (view: View) => void; /** * Whether to show the total count for the selected view. * @default true * @external */ showTotal?: boolean; /** * Information about how to handle the "All Items" view. *

* Supported properties:
* - `name`: [string] Display name instead of "All Items".
* - `hidden`: [bool] Whether to hide the "All Items" view from the list. Ignored if there are no preset views. Default: `false`.
* @external */ allItemsViewProps?: AllItemsViewProps; /** * Overrides the placeholder in the **Save View** modal. * @external */ viewNamePlaceholder?: string; /** * The toolbar state that the dropdown is connected to. */ toolbar: ToolbarCollectionState; /** * An optional popover props to apply to the dropdown. Only relevant when this component is rendered outside of the Collection component. */ popoverProps?: DropdownProps['popoverProps']; } export declare const CollectionViewsDropdownBase: (props: CollectionViewsDropdownBaseProps) => React.JSX.Element | null; //# sourceMappingURL=CollectionViewsDropdownBase.d.ts.map