ados-rcm 1.0.593 → 1.0.595
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/AModule/AComponents/ADatePicker/ADateRangePicker.d.ts +16 -0
- package/dist/index.cjs.js +32 -32
- package/dist/index.es.js +5150 -5149
- package/package.json +1 -1
@@ -22,6 +22,10 @@ export interface IADateRangePickerProps extends Omit<IADatePickerProps, 'useDate
|
|
22
22
|
* Description : useDateRange of ADateRangePicker
|
23
23
|
*/
|
24
24
|
useDateRange?: TUseValues<IDateRange | undefined, IDateRange>;
|
25
|
+
/**
|
26
|
+
* yearsOptionSize? : number = 5
|
27
|
+
*/
|
28
|
+
yearsOptionSize?: number;
|
25
29
|
/**
|
26
30
|
* resources : Partial<typeof Resources.ADateRangePicker>;
|
27
31
|
*
|
@@ -47,3 +51,15 @@ export interface IADateRangePickerProps extends Omit<IADatePickerProps, 'useDate
|
|
47
51
|
*
|
48
52
|
*/
|
49
53
|
export declare const ADateRangePicker: (props: IADateRangePickerProps) => import("react/jsx-runtime").JSX.Element;
|
54
|
+
/**
|
55
|
+
* getMonthsOptions : (year: number, minDate?: Date, maxDate?: Date) => number[]
|
56
|
+
*
|
57
|
+
* Description : get months options. returns months for given year that are between minDate and maxDate
|
58
|
+
*/
|
59
|
+
export declare function getMonthsOptions(year: number, minDate?: Date, maxDate?: Date): number[];
|
60
|
+
/**
|
61
|
+
* getYearsOptions : (year: number, minDate?: Date, maxDate?: Date, size? : number) => number[]
|
62
|
+
*
|
63
|
+
* Description : returns max {size} years with the current year in the middle. If minDate and maxDate are provided, the years will be within the range.
|
64
|
+
*/
|
65
|
+
export declare function getYearsOptions(year: number, minDate?: Date, maxDate?: Date, size?: number): number[];
|