@progress/kendo-angular-dateinputs 14.2.0-develop.1 → 14.2.0-develop.10

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.
@@ -12,11 +12,31 @@ import * as i0 from "@angular/core";
12
12
  const EMPTY_DATA = [[]];
13
13
  const CELLS_LENGTH = 4;
14
14
  const ROWS_LENGTH = 3;
15
+ const upStep = (year) => {
16
+ const decadeOfCentury = Number(year.toString().slice(-2, -1));
17
+ if (decadeOfCentury < 2) {
18
+ return -2;
19
+ }
20
+ if (decadeOfCentury < 4) {
21
+ return -6;
22
+ }
23
+ return -4;
24
+ };
25
+ const downStep = (year) => {
26
+ const decadeOfCentury = Number(year.toString().slice(-2, -1));
27
+ if (decadeOfCentury > 7) {
28
+ return 2;
29
+ }
30
+ if (decadeOfCentury > 5) {
31
+ return 6;
32
+ }
33
+ return 4;
34
+ };
15
35
  const ACTIONS = {
16
36
  [Action.Left]: (date) => addDecades(date, -1),
17
- [Action.Up]: (date) => addDecades(date, -5),
37
+ [Action.Up]: (date) => addDecades(date, upStep(date.getFullYear())),
18
38
  [Action.Right]: (date) => addDecades(date, 1),
19
- [Action.Down]: (date) => addDecades(date, 5),
39
+ [Action.Down]: (date) => addDecades(date, downStep(date.getFullYear())),
20
40
  [Action.PrevView]: (date) => addCenturies(date, -1),
21
41
  [Action.NextView]: (date) => addCenturies(date, 1),
22
42
  [Action.FirstInView]: (date) => firstDecadeOfCentury(date),
@@ -12,11 +12,31 @@ import * as i0 from "@angular/core";
12
12
  const EMPTY_DATA = [[]];
13
13
  const CELLS_LENGTH = 4;
14
14
  const ROWS_LENGTH = 3;
15
+ const upStep = (year) => {
16
+ const yearOfDecade = Number(year.toString().slice(-1));
17
+ if (yearOfDecade < 2) {
18
+ return -2;
19
+ }
20
+ if (yearOfDecade < 4) {
21
+ return -6;
22
+ }
23
+ return -4;
24
+ };
25
+ const downStep = (year) => {
26
+ const yearOfDecade = Number(year.toString().slice(-1));
27
+ if (yearOfDecade > 7) {
28
+ return 2;
29
+ }
30
+ if (yearOfDecade > 5) {
31
+ return 6;
32
+ }
33
+ return 4;
34
+ };
15
35
  const ACTIONS = {
16
36
  [Action.Left]: (date) => addYears(date, -1),
17
- [Action.Up]: (date) => addYears(date, -5),
37
+ [Action.Up]: (date) => addYears(date, upStep(date.getFullYear())),
18
38
  [Action.Right]: (date) => addYears(date, 1),
19
- [Action.Down]: (date) => addYears(date, 5),
39
+ [Action.Down]: (date) => addYears(date, downStep(date.getFullYear())),
20
40
  [Action.PrevView]: (date) => addDecades(date, -1),
21
41
  [Action.NextView]: (date) => addDecades(date, 1),
22
42
  [Action.FirstInView]: (date) => firstYearOfDecade(date),
@@ -14,29 +14,11 @@ import * as i1 from "@progress/kendo-angular-intl";
14
14
  const EMPTY_DATA = [[]];
15
15
  const CELLS_LENGTH = 4;
16
16
  const ROWS_LENGTH = 3;
17
- const upStep = (month) => {
18
- if (month > 4) {
19
- return -5;
20
- }
21
- if (month < 2) {
22
- return -2;
23
- }
24
- return -7;
25
- };
26
- const downStep = (month) => {
27
- if (month < 7) {
28
- return 5;
29
- }
30
- if (month < 10) {
31
- return 7;
32
- }
33
- return 2;
34
- };
35
17
  const ACTIONS = {
36
18
  [Action.Left]: (date) => addMonths(date, -1),
37
- [Action.Up]: (date) => addMonths(date, upStep(date.getMonth())),
19
+ [Action.Up]: (date) => addMonths(date, -4),
38
20
  [Action.Right]: (date) => addMonths(date, 1),
39
- [Action.Down]: (date) => addMonths(date, downStep(date.getMonth())),
21
+ [Action.Down]: (date) => addMonths(date, 4),
40
22
  [Action.PrevView]: (date) => addYears(date, -1),
41
23
  [Action.NextView]: (date) => addYears(date, 1),
42
24
  [Action.FirstInView]: (date) => firstMonthOfYear(date),
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-dateinputs',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1700562842,
13
- version: '14.2.0-develop.1',
12
+ publishDate: 1701248855,
13
+ version: '14.2.0-develop.10',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
15
15
  };
@@ -37,8 +37,8 @@ const packageMetadata = {
37
37
  name: '@progress/kendo-angular-dateinputs',
38
38
  productName: 'Kendo UI for Angular',
39
39
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
40
- publishDate: 1700562842,
41
- version: '14.2.0-develop.1',
40
+ publishDate: 1701248855,
41
+ version: '14.2.0-develop.10',
42
42
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
43
43
  };
44
44
 
@@ -587,11 +587,31 @@ const windowSize = () => {
587
587
  const EMPTY_DATA$3 = [[]];
588
588
  const CELLS_LENGTH$3 = 4;
589
589
  const ROWS_LENGTH$3 = 3;
590
+ const upStep$1 = (year) => {
591
+ const decadeOfCentury = Number(year.toString().slice(-2, -1));
592
+ if (decadeOfCentury < 2) {
593
+ return -2;
594
+ }
595
+ if (decadeOfCentury < 4) {
596
+ return -6;
597
+ }
598
+ return -4;
599
+ };
600
+ const downStep$1 = (year) => {
601
+ const decadeOfCentury = Number(year.toString().slice(-2, -1));
602
+ if (decadeOfCentury > 7) {
603
+ return 2;
604
+ }
605
+ if (decadeOfCentury > 5) {
606
+ return 6;
607
+ }
608
+ return 4;
609
+ };
590
610
  const ACTIONS$3 = {
591
611
  [Action.Left]: (date) => addDecades(date, -1),
592
- [Action.Up]: (date) => addDecades(date, -5),
612
+ [Action.Up]: (date) => addDecades(date, upStep$1(date.getFullYear())),
593
613
  [Action.Right]: (date) => addDecades(date, 1),
594
- [Action.Down]: (date) => addDecades(date, 5),
614
+ [Action.Down]: (date) => addDecades(date, downStep$1(date.getFullYear())),
595
615
  [Action.PrevView]: (date) => addCenturies(date, -1),
596
616
  [Action.NextView]: (date) => addCenturies(date, 1),
597
617
  [Action.FirstInView]: (date) => firstDecadeOfCentury(date),
@@ -753,11 +773,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
753
773
  const EMPTY_DATA$2 = [[]];
754
774
  const CELLS_LENGTH$2 = 4;
755
775
  const ROWS_LENGTH$2 = 3;
776
+ const upStep = (year) => {
777
+ const yearOfDecade = Number(year.toString().slice(-1));
778
+ if (yearOfDecade < 2) {
779
+ return -2;
780
+ }
781
+ if (yearOfDecade < 4) {
782
+ return -6;
783
+ }
784
+ return -4;
785
+ };
786
+ const downStep = (year) => {
787
+ const yearOfDecade = Number(year.toString().slice(-1));
788
+ if (yearOfDecade > 7) {
789
+ return 2;
790
+ }
791
+ if (yearOfDecade > 5) {
792
+ return 6;
793
+ }
794
+ return 4;
795
+ };
756
796
  const ACTIONS$2 = {
757
797
  [Action.Left]: (date) => addYears(date, -1),
758
- [Action.Up]: (date) => addYears(date, -5),
798
+ [Action.Up]: (date) => addYears(date, upStep(date.getFullYear())),
759
799
  [Action.Right]: (date) => addYears(date, 1),
760
- [Action.Down]: (date) => addYears(date, 5),
800
+ [Action.Down]: (date) => addYears(date, downStep(date.getFullYear())),
761
801
  [Action.PrevView]: (date) => addDecades(date, -1),
762
802
  [Action.NextView]: (date) => addDecades(date, 1),
763
803
  [Action.FirstInView]: (date) => firstYearOfDecade(date),
@@ -1104,29 +1144,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
1104
1144
  const EMPTY_DATA = [[]];
1105
1145
  const CELLS_LENGTH = 4;
1106
1146
  const ROWS_LENGTH = 3;
1107
- const upStep = (month) => {
1108
- if (month > 4) {
1109
- return -5;
1110
- }
1111
- if (month < 2) {
1112
- return -2;
1113
- }
1114
- return -7;
1115
- };
1116
- const downStep = (month) => {
1117
- if (month < 7) {
1118
- return 5;
1119
- }
1120
- if (month < 10) {
1121
- return 7;
1122
- }
1123
- return 2;
1124
- };
1125
1147
  const ACTIONS = {
1126
1148
  [Action.Left]: (date) => addMonths(date, -1),
1127
- [Action.Up]: (date) => addMonths(date, upStep(date.getMonth())),
1149
+ [Action.Up]: (date) => addMonths(date, -4),
1128
1150
  [Action.Right]: (date) => addMonths(date, 1),
1129
- [Action.Down]: (date) => addMonths(date, downStep(date.getMonth())),
1151
+ [Action.Down]: (date) => addMonths(date, 4),
1130
1152
  [Action.PrevView]: (date) => addYears(date, -1),
1131
1153
  [Action.NextView]: (date) => addYears(date, 1),
1132
1154
  [Action.FirstInView]: (date) => firstMonthOfYear(date),
@@ -37,8 +37,8 @@ const packageMetadata = {
37
37
  name: '@progress/kendo-angular-dateinputs',
38
38
  productName: 'Kendo UI for Angular',
39
39
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
40
- publishDate: 1700562842,
41
- version: '14.2.0-develop.1',
40
+ publishDate: 1701248855,
41
+ version: '14.2.0-develop.10',
42
42
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
43
43
  };
44
44
 
@@ -574,11 +574,31 @@ const windowSize = () => {
574
574
  const EMPTY_DATA$3 = [[]];
575
575
  const CELLS_LENGTH$3 = 4;
576
576
  const ROWS_LENGTH$3 = 3;
577
+ const upStep$1 = (year) => {
578
+ const decadeOfCentury = Number(year.toString().slice(-2, -1));
579
+ if (decadeOfCentury < 2) {
580
+ return -2;
581
+ }
582
+ if (decadeOfCentury < 4) {
583
+ return -6;
584
+ }
585
+ return -4;
586
+ };
587
+ const downStep$1 = (year) => {
588
+ const decadeOfCentury = Number(year.toString().slice(-2, -1));
589
+ if (decadeOfCentury > 7) {
590
+ return 2;
591
+ }
592
+ if (decadeOfCentury > 5) {
593
+ return 6;
594
+ }
595
+ return 4;
596
+ };
577
597
  const ACTIONS$3 = {
578
598
  [Action.Left]: (date) => addDecades(date, -1),
579
- [Action.Up]: (date) => addDecades(date, -5),
599
+ [Action.Up]: (date) => addDecades(date, upStep$1(date.getFullYear())),
580
600
  [Action.Right]: (date) => addDecades(date, 1),
581
- [Action.Down]: (date) => addDecades(date, 5),
601
+ [Action.Down]: (date) => addDecades(date, downStep$1(date.getFullYear())),
582
602
  [Action.PrevView]: (date) => addCenturies(date, -1),
583
603
  [Action.NextView]: (date) => addCenturies(date, 1),
584
604
  [Action.FirstInView]: (date) => firstDecadeOfCentury(date),
@@ -740,11 +760,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
740
760
  const EMPTY_DATA$2 = [[]];
741
761
  const CELLS_LENGTH$2 = 4;
742
762
  const ROWS_LENGTH$2 = 3;
763
+ const upStep = (year) => {
764
+ const yearOfDecade = Number(year.toString().slice(-1));
765
+ if (yearOfDecade < 2) {
766
+ return -2;
767
+ }
768
+ if (yearOfDecade < 4) {
769
+ return -6;
770
+ }
771
+ return -4;
772
+ };
773
+ const downStep = (year) => {
774
+ const yearOfDecade = Number(year.toString().slice(-1));
775
+ if (yearOfDecade > 7) {
776
+ return 2;
777
+ }
778
+ if (yearOfDecade > 5) {
779
+ return 6;
780
+ }
781
+ return 4;
782
+ };
743
783
  const ACTIONS$2 = {
744
784
  [Action.Left]: (date) => addYears(date, -1),
745
- [Action.Up]: (date) => addYears(date, -5),
785
+ [Action.Up]: (date) => addYears(date, upStep(date.getFullYear())),
746
786
  [Action.Right]: (date) => addYears(date, 1),
747
- [Action.Down]: (date) => addYears(date, 5),
787
+ [Action.Down]: (date) => addYears(date, downStep(date.getFullYear())),
748
788
  [Action.PrevView]: (date) => addDecades(date, -1),
749
789
  [Action.NextView]: (date) => addDecades(date, 1),
750
790
  [Action.FirstInView]: (date) => firstYearOfDecade(date),
@@ -1091,29 +1131,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
1091
1131
  const EMPTY_DATA = [[]];
1092
1132
  const CELLS_LENGTH = 4;
1093
1133
  const ROWS_LENGTH = 3;
1094
- const upStep = (month) => {
1095
- if (month > 4) {
1096
- return -5;
1097
- }
1098
- if (month < 2) {
1099
- return -2;
1100
- }
1101
- return -7;
1102
- };
1103
- const downStep = (month) => {
1104
- if (month < 7) {
1105
- return 5;
1106
- }
1107
- if (month < 10) {
1108
- return 7;
1109
- }
1110
- return 2;
1111
- };
1112
1134
  const ACTIONS = {
1113
1135
  [Action.Left]: (date) => addMonths(date, -1),
1114
- [Action.Up]: (date) => addMonths(date, upStep(date.getMonth())),
1136
+ [Action.Up]: (date) => addMonths(date, -4),
1115
1137
  [Action.Right]: (date) => addMonths(date, 1),
1116
- [Action.Down]: (date) => addMonths(date, downStep(date.getMonth())),
1138
+ [Action.Down]: (date) => addMonths(date, 4),
1117
1139
  [Action.PrevView]: (date) => addYears(date, -1),
1118
1140
  [Action.NextView]: (date) => addYears(date, 1),
1119
1141
  [Action.FirstInView]: (date) => firstMonthOfYear(date),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-dateinputs",
3
- "version": "14.2.0-develop.1",
3
+ "version": "14.2.0-develop.10",
4
4
  "description": "Kendo UI for Angular Date Inputs Package - Everything you need to add date selection functionality to apps (DatePicker, TimePicker, DateInput, DateRangePicker, DateTimePicker, Calendar, and MultiViewCalendar).",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -34,20 +34,20 @@
34
34
  "@angular/forms": "13 - 17",
35
35
  "@angular/platform-browser": "13 - 17",
36
36
  "@progress/kendo-licensing": "^1.0.2",
37
- "@progress/kendo-angular-common": "14.2.0-develop.1",
38
- "@progress/kendo-angular-intl": "14.2.0-develop.1",
39
- "@progress/kendo-angular-l10n": "14.2.0-develop.1",
40
- "@progress/kendo-angular-icons": "14.2.0-develop.1",
41
- "@progress/kendo-angular-popup": "14.2.0-develop.1",
42
- "@progress/kendo-angular-navigation": "14.2.0-develop.1",
37
+ "@progress/kendo-angular-common": "14.2.0-develop.10",
38
+ "@progress/kendo-angular-intl": "14.2.0-develop.10",
39
+ "@progress/kendo-angular-l10n": "14.2.0-develop.10",
40
+ "@progress/kendo-angular-icons": "14.2.0-develop.10",
41
+ "@progress/kendo-angular-popup": "14.2.0-develop.10",
42
+ "@progress/kendo-angular-navigation": "14.2.0-develop.10",
43
43
  "rxjs": "^6.5.3 || ^7.0.0",
44
- "@progress/kendo-angular-buttons": "14.2.0-develop.1",
45
- "@progress/kendo-angular-inputs": "14.2.0-develop.1",
46
- "@progress/kendo-angular-label": "14.2.0-develop.1"
44
+ "@progress/kendo-angular-buttons": "14.2.0-develop.10",
45
+ "@progress/kendo-angular-inputs": "14.2.0-develop.10",
46
+ "@progress/kendo-angular-label": "14.2.0-develop.10"
47
47
  },
48
48
  "dependencies": {
49
49
  "tslib": "^2.3.1",
50
- "@progress/kendo-angular-schematics": "14.2.0-develop.1",
50
+ "@progress/kendo-angular-schematics": "14.2.0-develop.10",
51
51
  "@progress/kendo-common": "^0.2.0",
52
52
  "@progress/kendo-date-math": "^1.1.0",
53
53
  "@progress/kendo-dateinputs-common": "v0.3.1-dev.202311171243"