react-month-picker-dropdown
Version:
This is a slim library for month picker as dropdown menu for React Project
12 lines (11 loc) • 1.07 kB
TypeScript
import { PropsIntf, StartAndEndOfMonthAndYearIntf, YearsWithMonthIntf, SelectedMonthsAndYearsIDIntf } from './app.model';
export declare const getFinalLabelToDisplay: (monthsAndYearsWithSelection: YearsWithMonthIntf[], selectedStartId: number, selectedEndId: number) => StartAndEndOfMonthAndYearIntf;
export declare const getMonthDataById: (monthsAndYearsWithSelection: YearsWithMonthIntf[], selectedId: number) => YearsWithMonthIntf[];
export declare const getTotalMonthsAndYears: (props: PropsIntf) => YearsWithMonthIntf[];
export declare const validateAndSetValidInputValues: (props: PropsIntf) => {
monthsAndYears?: StartAndEndOfMonthAndYearIntf;
errorMessage: string;
};
export declare const getSelectedMonthAndYearsLabel: (selectedMonthAndYear: SelectedMonthsAndYearsIDIntf, props: PropsIntf, monthsAndYearsWithSelection: YearsWithMonthIntf[]) => string;
export declare const shouldDisplayTheCheckbox: (shouldDisplayTheCheckbox: boolean) => string;
export declare const getWeightedSelectedClass: (currentYearWithMonth: YearsWithMonthIntf) => string;