import * as i0 from '@angular/core'; import { OnInit, OnChanges, TemplateRef, SimpleChanges, EventEmitter } from '@angular/core'; import { ControlValueAccessor, AsyncValidator, FormGroup, FormControl, ValidationErrors, ValidatorFn } from '@angular/forms'; import { Observable } from 'rxjs'; import { CronExpression } from 'cron-parser'; import { NzSafeAny } from 'ng-zorro-antd/core/types'; import { NzCronExpressionI18nInterface, NzCronExpressionLabelI18n, NzCronExpressionCronErrorI18n } from 'ng-zorro-antd/i18n'; import * as ng_zorro_antd_cron_expression from 'ng-zorro-antd/cron-expression'; /** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ type TimeType = keyof Cron; interface Cron { second?: CronValue; minute?: CronValue; hour?: CronValue; day?: CronValue; month?: CronValue; week?: CronValue; } type CronValue = '*' | `${number}` | `${number}-${number}` | `${number}/${number}` | string; interface CronChangeType { label: TimeType; value: CronValue; } type NzCronExpressionSize = 'large' | 'default' | 'small'; type NzCronExpressionType = 'linux' | 'spring'; declare class NzCronExpressionComponent implements OnInit, OnChanges, ControlValueAccessor, AsyncValidator { private formBuilder; private cdr; private i18n; private destroyRef; nzSize: NzCronExpressionSize; nzType: NzCronExpressionType; nzCollapseDisable: boolean; nzExtra?: TemplateRef | null; nzSemantic: TemplateRef | null; nzBorderless: boolean; nzDisabled: boolean; locale: NzCronExpressionI18nInterface; focus: boolean; labelFocus: TimeType | null; labels: TimeType[]; interval: CronExpression; nextTimeList: Date[]; private isNzDisableFirstChange; validateForm: FormGroup>>; onChange: NzSafeAny; onTouch: () => void; convertFormat(value: string): void; writeValue(value: string | null): void; registerOnChange(fn: NzSafeAny): void; registerOnTouched(fn: NzSafeAny): void; validate(): Observable; setDisabledState(isDisabled: boolean): void; constructor(); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; cronFormType(): void; previewDate(value: Cron): void; loadMorePreview(): void; focusEffect(value: TimeType): void; blurEffect(): void; getValue(item: CronChangeType): void; checkValid: ValidatorFn; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; static ngAcceptInputType_nzCollapseDisable: unknown; static ngAcceptInputType_nzBorderless: unknown; static ngAcceptInputType_nzDisabled: unknown; } declare class NzCronExpressionLabelComponent { type: TimeType; locale: NzCronExpressionLabelI18n; labelFocus: string | null; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class NzCronExpressionInputComponent { value: string; label: TimeType; disabled: boolean; readonly focusEffect: EventEmitter; readonly blurEffect: EventEmitter; readonly getValue: EventEmitter; focusInputEffect(event: FocusEvent): void; blurInputEffect(): void; setValue(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; static ngAcceptInputType_disabled: unknown; } declare class NzCronExpressionPreviewComponent { private cdr; TimeList: Date[]; visible: boolean; locale: NzCronExpressionCronErrorI18n; nzSemantic: TemplateRef | null; readonly loadMorePreview: EventEmitter; isExpand: boolean; setExpand(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; static ngAcceptInputType_visible: unknown; } declare class NzCronExpressionModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { NzCronExpressionComponent, NzCronExpressionModule }; export type { Cron, CronChangeType, CronValue, NzCronExpressionSize, NzCronExpressionType, TimeType };