| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- import { TimeUnit } from 'ngx-bootstrap/chronos';
- export declare type BsDatepickerViewMode = 'day' | 'month' | 'year';
- /** *************** */
- export interface NavigationViewModel {
- monthTitle: string;
- yearTitle: string;
- hideLeftArrow?: boolean;
- hideRightArrow?: boolean;
- disableLeftArrow?: boolean;
- disableRightArrow?: boolean;
- }
- export interface CalendarCellViewModel {
- date: Date;
- label: string;
- isDisabled?: boolean;
- isHovered?: boolean;
- isSelected?: boolean;
- }
- /** *************** */
- export interface DayViewModel extends CalendarCellViewModel {
- isOtherMonthHovered?: boolean;
- isOtherMonth?: boolean;
- isInRange?: boolean;
- isSelectionStart?: boolean;
- isSelectionEnd?: boolean;
- isToday?: boolean;
- customClasses?: string;
- monthIndex?: number;
- weekIndex?: number;
- dayIndex?: number;
- }
- export interface WeekViewModel {
- days: DayViewModel[];
- isHovered?: boolean;
- }
- export interface DaysCalendarViewModel extends NavigationViewModel {
- weeks: WeekViewModel[];
- month: Date;
- weekNumbers: string[];
- weekdays: string[];
- }
- /** *************** */
- export interface MonthsCalendarViewModel extends NavigationViewModel {
- months: CalendarCellViewModel[][];
- }
- /** *************** */
- export interface YearsCalendarViewModel extends NavigationViewModel {
- years: CalendarCellViewModel[][];
- }
- /** *************** */
- /** *************** */
- export interface DaysCalendarModel {
- daysMatrix: Date[][];
- month: Date;
- }
- /** *************** */
- export interface MonthViewOptions {
- width?: number;
- height?: number;
- firstDayOfWeek?: number;
- }
- /** *************** */
- export interface DatepickerFormatOptions {
- locale: string;
- monthTitle: string;
- yearTitle: string;
- dayLabel: string;
- monthLabel: string;
- yearLabel: string;
- weekNumbers: string;
- }
- export interface DatepickerRenderOptions {
- showWeekNumbers?: boolean;
- displayMonths?: number;
- }
- export interface DatepickerDateCustomClasses {
- date: Date;
- classes: string[];
- }
- /** *************** */
- /** *************** */
- export declare enum BsNavigationDirection {
- UP = 0,
- DOWN = 1
- }
- export interface BsNavigationEvent {
- direction?: BsNavigationDirection;
- step?: TimeUnit;
- }
- export interface BsViewNavigationEvent {
- unit?: TimeUnit;
- viewMode: BsDatepickerViewMode;
- }
- export interface CellHoverEvent {
- cell: CalendarCellViewModel;
- isHovered: boolean;
- }
|