systelab-components
Version:
systelab-components is a set of components that use wide accepted and adopted standard technologies like Angular and Bootstrap, as well as other popular libraries. Please read the ATTRIBUTION.md file for a complete list of dependencies.
45 lines (44 loc) • 1.96 kB
TypeScript
import { OnInit, EventEmitter } from '@angular/core';
import { I18nService } from 'systelab-translate';
import { Month } from '../month-selector/month-selector.component';
import * as i0 from "@angular/core";
export declare class Week {
week: number;
text: string;
day: number;
month: number;
year: number;
isActive: boolean;
constructor(week: number, text: string, day: number, month: number, year: number, isActive: boolean);
}
export declare class WeekSelectorComponent implements OnInit {
private i18nService;
maxDate: Date;
minDate: Date;
currentDate: Date;
disabled: boolean;
private _selectedWeek;
get selectedWeek(): Week;
selectedWeekChange: EventEmitter<any>;
set selectedWeek(value: Week);
weeks: Array<Week>;
months: Array<Month>;
isOpened: boolean;
monthNames: any[];
daysNames: any[];
constructor(i18nService: I18nService);
ngOnInit(): void;
onClicked(e: any): void;
hideSelector(): void;
getMonths(): void;
getWeeks(): void;
onClickedWeek(week: Week): void;
onClickedMonth(month: Month): void;
addYear(num: number): void;
addMonth(num: number): void;
checkDateIntoIntervals(date: Date): boolean;
getWeeksInMonth(monthActual: number, yearActual: number): any[];
getWeek(yearActual: any, monthActual: any, dayActual: any, isGregorian: any): number;
static ɵfac: i0.ɵɵFactoryDeclaration<WeekSelectorComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<WeekSelectorComponent, "systelab-week-selector", never, { "maxDate": { "alias": "maxDate"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "currentDate": { "alias": "currentDate"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "selectedWeek": { "alias": "selectedWeek"; "required": false; }; }, { "selectedWeekChange": "selectedWeekChange"; }, never, never, false, never>;
}