import { SchemeFieldType } from '../../addons'; import { ListSelectionType } from '../configuration-model/list.model'; import { ListSorting } from '../configuration-model/sorting.model'; import { ListViewType } from '../configuration-model/view.model'; export interface ListLayout { Title: string; ViewsMenu: ListLayoutViewsMenu; Menu: ListLayoutMenu; LineMenu: ListLayoutMenu; Search: ListLayoutSearch; SmartSearch: ListLayoutSmartSearch; SelectionType: ListSelectionType; Sorting: ListSorting; View: ListLayoutView; } export interface ListLayoutViewsMenu { Visible: boolean; Items: DropDownElement[]; } export declare type DropDownElement = { Key: string; Value: T; }; export interface ListLayoutMenu { Items: ListLayoutMenuItem[]; } export interface ListLayoutMenuItem { Key: string; Title: string; ButtonStyleType?: ButtonStyleType; } export declare type ButtonStyleType = 'Weak' | 'WeakInvert' | 'Regular' | 'Strong'; export interface ListLayoutSearch { Visible: boolean; } export interface ListLayoutSmartSearch { Fields: ListLayoutSmartSearchField[]; } export interface ListLayoutSmartSearchField { FieldID: string; Title: string; Type: SchemeFieldType; } export interface ListLayoutView { Type: ListViewType; ViewBlocks: ListFieldViewBlock[]; Key: string; SortingFields: string[]; } export interface ListFieldViewBlock { FieldID: string; Type: ListFieldViewBlockType; } export declare type ListFieldViewBlockType = 'Button' | 'Textbox';