Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/ui/image-stack-steps/src/ |
Upload File : |
export type ImageStackStepsOptions = { steps: Array<StepType>, }; export type StepType = { id: string, progressBox?: { title: string, }, header: HeaderType, stack: StackType, footer: FooterType, styles?: { minWidth?: number; }, }; export const headerTypeEnum = Object.freeze({ TEXT: 'text', STUB: 'stub', }); export type HeaderType = { type: headerTypeEnum.STUB | headerTypeEnum.TEXT, data: {} | { text: string }, styles?: { maxWidth?: number, }, }; export type StackType = { images: Array<ImageType>, status?: StackStatusType, }; export const imageTypeEnum = Object.freeze({ IMAGE: 'image', IMAGE_STUB: 'image-stub', USER: 'user', USER_STUB: 'user-stub', ICON: 'icon', COUNTER: 'counter', }); export type ImageTypeImage = { src: string, title?: string, }; export type IconType = { icon: string, color: string, }; export type ImageType = { type: ( imageTypeEnum.IMAGE | imageTypeEnum.USER | imageTypeEnum.USER_STUB | imageTypeEnum.IMAGE_STUB | imageTypeEnum.ICON | imageTypeEnum.COUNTER ), data: ImageTypeImage | ImageTypeImage & { userId: number } | {} | IconType | { text: string }, }; export const stackStatusEnum = Object.freeze({ CUSTOM: 'custom', OK: 'ok', CANCEL: 'cancel', WAIT: 'wait', }); export type StackStatusType = { type: stackStatusEnum.OK | stackStatusEnum.WAIT | stackStatusEnum.CANCEL | stackStatusEnum.CUSTOM, data?: IconType, }; export const footerTypeEnum = Object.freeze({ TEXT: 'text', STUB: 'stub', DURATION: 'duration', }); export type FooterType = { type: footerTypeEnum.STUB | footerTypeEnum.TEXT | footerTypeEnum.DURATION, data: {} | { text: string } | FooterDurationType, styles?: { maxWidth?: number, }, }; export type FooterDurationType = { duration: number, // seconds format?: string | [], realtime: boolean, realtimeBoundary?: number, };