import { Injectable } from '@angular/core'; import { DatepickerRenderOptions } from './models/index'; /** * For date range picker there are `BsDaterangepickerConfig` which inherits all properties, * except `displayMonths`, for range picker it default to `2` */ @Injectable() export class BsDatepickerConfig implements DatepickerRenderOptions { value?: Date | Date[]; isDisabled?: boolean; /** * Default min date for all date/range pickers */ minDate?: Date; /** * Default max date for all date/range pickers */ maxDate?: Date; /** CSS class which will be applied to datepicker container, * usually used to set color theme */ containerClass = 'theme-green'; // DatepickerRenderOptions displayMonths = 1; /** * Allows to hide week numbers in datepicker */ showWeekNumbers = true; dateInputFormat = 'L'; // range picker rangeSeparator = ' - '; /** * Date format for date range input field */ rangeInputFormat = 'L'; // DatepickerFormatOptions monthTitle = 'MMMM'; yearTitle = 'YYYY'; dayLabel = 'D'; monthLabel = 'MMMM'; yearLabel = 'YYYY'; weekNumbers = 'w'; }