ados-rcm 1.0.593 → 1.0.595

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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[];