magneto365.ui 2.43.0 → 2.43.1

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.
@@ -33,4 +33,12 @@ export interface IDatePicker {
33
33
  * Callback function to be executed when the selected date in the date picker changes.
34
34
  */
35
35
  onChange: (value: string | Date | null) => void;
36
+ /**
37
+ * value for setting future years
38
+ */
39
+ futureYears?: number;
40
+ /**
41
+ * value for setting past years
42
+ */
43
+ pastYears?: number;
36
44
  }
@@ -1,4 +1,4 @@
1
- export declare function generateYearArray(): {
1
+ export declare function generateYearArray(additionalYears?: number, pastYears?: number): {
2
2
  yearsArray: number[];
3
- yearsArraytoString: string[];
3
+ yearsArrayToString: string[];
4
4
  };
@@ -16,4 +16,12 @@ export interface IMobileDatePicker {
16
16
  * The selected date value for the date picker.
17
17
  */
18
18
  value?: Date;
19
+ /**
20
+ * value for setting future years
21
+ */
22
+ futureYears?: number;
23
+ /**
24
+ * value for setting past years
25
+ */
26
+ pastYears?: number;
19
27
  }
@@ -1,6 +1,4 @@
1
1
  export declare const monthOptionsValue: number[];
2
- export declare const yearOptionsValue: number[];
3
- export declare const yearOptionsLabel: string[];
4
2
  export declare const months: string[];
5
3
  export declare const years: {
6
4
  optionValue: number;