/** * @file Schedule */ import { Emitter } from '@co-hooks/emitter'; import { ScheduleSelectType } from './SchedulePanel'; export interface IScheduleValue { label: string; value: number[]; } export interface IScheduleDisplayInfo { label: string; value: string[]; } export interface IRcScheduleBaseOptions { datasource: string[]; divider?: number; interrupted?: boolean; inverseSelect?: boolean; disabled?: boolean; isTimeDisabled?: (label: string, index: number) => boolean; } export interface IScheduleEvent { 'value-change': [IScheduleValue[]]; 'datasource-update': []; 'repaint-panel': []; } export declare class Schedule extends Emitter { private value; private datasource; private divider; private interrupted; private inverseSelect; private disabled; private valueHash; updateValue(value: IScheduleValue[]): void; updateOptions(options: IRcScheduleBaseOptions): void; getDatasource(): string[]; getDivider(): number; getInterrupted(): boolean; getDisabled(): boolean; getItemSelectType(label: string, index: number): ScheduleSelectType; isTimeDisabled(lable: string, index: number): boolean; setValue(addVal: IScheduleValue[]): void; clearValue(): void; getDisplayInfo(): IScheduleDisplayInfo[]; private splitValue; private calcInterrupted; private calcUninterrupted; }