import { type JSONRefObject } from '../../data/JSONRefObject'; import { type AspectsProps } from '../../model/AspectsProps'; import { type Attachment } from '../../model/Attachment'; import { type AlignProps, type HeadlineCommonProps, type TextProps } from '../../model/HeadlineType'; import { type LinkProps, type Target } from '../../model/LinkProps'; import { type IconProps } from '../../model/Picture'; import { type UniBlockContent } from '../../UniBlock/UniBlockProps'; /** * @title Отображение списка * @enumNames [ * "Одна колонка", * "Две колонки", * ] */ export declare type LinkColumnsMode = 'single' | 'double'; export interface LinkDoc extends LinkProps { /** @title Размер файла */ fileSize?: string; /** @title Формат файла */ fileFormat?: string; } export declare type AttachmentDoc = TextProps & { /** @title */ attachment?: Attachment; /** @default "" */ target?: Target; }; declare type DescriptionProps = { /** @title Описание */ __html?: string; }; declare type Report = { /** @hidden */ __html?: string; }; declare type ReportSource = { /** @title Текст согласия */ reportSource?: Report & JSONRefObject; }; /** * @title Ссылка на документ */ export declare type LinkDocDef = AspectsProps & LinkDoc & ReportSource & DescriptionProps & { /** @default "Link" */ docType: 'Link'; }; /** * @title Файл */ export declare type AttachmentDocDef = AttachmentDoc & AspectsProps & ReportSource & DescriptionProps & { /** @default "Attachment" */ docType: 'Attachment'; }; /** @title Не выбрано * */ export declare type EmptyDocType = { /** @default "" */ docType: ''; }; /** * @title Документ * @default {"docType": ""} */ export declare type DocBlockDef = EmptyDocType | LinkDocDef | AttachmentDocDef; /** * @title Список документов */ export declare type LinkDocsContent = UniBlockContent & HeadlineCommonProps & IconProps & AlignProps & { /** @title Список */ documents?: DocBlockDef[]; columnsMode?: LinkColumnsMode; }; export {};