@progress/kendo-angular-dateinputs 18.1.1-develop.1 → 18.1.1-develop.2
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.
|
@@ -60,12 +60,13 @@ export class CenturyViewService {
|
|
|
60
60
|
const cells = range(0, CELLS_LENGTH);
|
|
61
61
|
const firstDate = firstDecadeOfCentury(viewDate);
|
|
62
62
|
const lastDate = lastDecadeOfCentury(viewDate);
|
|
63
|
+
const lastYearOfCentury = lastYearOfDecade(lastDate).getFullYear() + 1;
|
|
63
64
|
const today = getToday();
|
|
64
65
|
return range(0, ROWS_LENGTH).map(rowOffset => {
|
|
65
66
|
const baseDate = addDecades(firstDate, rowOffset * CELLS_LENGTH);
|
|
66
67
|
return cells.map(cellOffset => {
|
|
67
68
|
const cellDate = this.normalize(addDecades(baseDate, cellOffset), min, max);
|
|
68
|
-
const nextCentury = cellDate.getFullYear()
|
|
69
|
+
const nextCentury = cellDate.getFullYear() >= lastYearOfCentury;
|
|
69
70
|
if (!this.isInRange(cellDate, min, max) || nextCentury) {
|
|
70
71
|
return null;
|
|
71
72
|
}
|
|
@@ -10,7 +10,7 @@ export const packageMetadata = {
|
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCode: 'KENDOUIANGULAR',
|
|
12
12
|
productCodes: ['KENDOUIANGULAR'],
|
|
13
|
-
publishDate:
|
|
14
|
-
version: '18.1.1-develop.
|
|
13
|
+
publishDate: 1739972270,
|
|
14
|
+
version: '18.1.1-develop.2',
|
|
15
15
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
16
16
|
};
|
|
@@ -7,7 +7,7 @@ import { Injectable, EventEmitter, Directive, Input, isDevMode, Component, Outpu
|
|
|
7
7
|
import { NG_VALUE_ACCESSOR, NG_VALIDATORS, NgControl } from '@angular/forms';
|
|
8
8
|
import * as i1$1 from '@progress/kendo-angular-l10n';
|
|
9
9
|
import { ComponentMessages, LocalizationService, L10N_PREFIX, RTL } from '@progress/kendo-angular-l10n';
|
|
10
|
-
import { cloneDate, MS_PER_HOUR, MS_PER_MINUTE, addDays, getDate, isEqual, addDecades, addCenturies, firstDecadeOfCentury, lastDecadeOfCentury, firstYearOfDecade, createDate,
|
|
10
|
+
import { cloneDate, MS_PER_HOUR, MS_PER_MINUTE, addDays, getDate, isEqual, addDecades, addCenturies, firstDecadeOfCentury, lastDecadeOfCentury, lastYearOfDecade, firstYearOfDecade, createDate, lastMonthOfYear, lastDayOfMonth, durationInCenturies, addYears, durationInDecades, addWeeks, addMonths, firstDayOfMonth, dayOfWeek, durationInMonths, firstMonthOfYear, durationInYears, weekInYear } from '@progress/kendo-date-math';
|
|
11
11
|
import * as i19 from '@progress/kendo-angular-common';
|
|
12
12
|
import { isDocumentAvailable, EventsOutsideAngularDirective, guid, Keys as Keys$1, hasObservers, isObject, KendoInput, ResizeSensorComponent, isObjectPresent, removeHTMLAttributes, parseAttributes, anyChanged, isControlRequired, setHTMLAttributes, MultiTabStop, ToggleButtonTabStopDirective, ResizeBatchService, KENDO_TOGGLEBUTTONTABSTOP } from '@progress/kendo-angular-common';
|
|
13
13
|
export { ToggleButtonTabStopDirective } from '@progress/kendo-angular-common';
|
|
@@ -36,8 +36,8 @@ const packageMetadata = {
|
|
|
36
36
|
productName: 'Kendo UI for Angular',
|
|
37
37
|
productCode: 'KENDOUIANGULAR',
|
|
38
38
|
productCodes: ['KENDOUIANGULAR'],
|
|
39
|
-
publishDate:
|
|
40
|
-
version: '18.1.1-develop.
|
|
39
|
+
publishDate: 1739972270,
|
|
40
|
+
version: '18.1.1-develop.2',
|
|
41
41
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
42
42
|
};
|
|
43
43
|
|
|
@@ -608,12 +608,13 @@ class CenturyViewService {
|
|
|
608
608
|
const cells = range(0, CELLS_LENGTH$3);
|
|
609
609
|
const firstDate = firstDecadeOfCentury(viewDate);
|
|
610
610
|
const lastDate = lastDecadeOfCentury(viewDate);
|
|
611
|
+
const lastYearOfCentury = lastYearOfDecade(lastDate).getFullYear() + 1;
|
|
611
612
|
const today = getToday();
|
|
612
613
|
return range(0, ROWS_LENGTH$3).map(rowOffset => {
|
|
613
614
|
const baseDate = addDecades(firstDate, rowOffset * CELLS_LENGTH$3);
|
|
614
615
|
return cells.map(cellOffset => {
|
|
615
616
|
const cellDate = this.normalize(addDecades(baseDate, cellOffset), min, max);
|
|
616
|
-
const nextCentury = cellDate.getFullYear()
|
|
617
|
+
const nextCentury = cellDate.getFullYear() >= lastYearOfCentury;
|
|
617
618
|
if (!this.isInRange(cellDate, min, max) || nextCentury) {
|
|
618
619
|
return null;
|
|
619
620
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-dateinputs",
|
|
3
|
-
"version": "18.1.1-develop.
|
|
3
|
+
"version": "18.1.1-develop.2",
|
|
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",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"package": {
|
|
30
30
|
"productName": "Kendo UI for Angular",
|
|
31
31
|
"productCode": "KENDOUIANGULAR",
|
|
32
|
-
"publishDate":
|
|
32
|
+
"publishDate": 1739972270,
|
|
33
33
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
@@ -40,19 +40,19 @@
|
|
|
40
40
|
"@angular/forms": "16 - 19",
|
|
41
41
|
"@angular/platform-browser": "16 - 19",
|
|
42
42
|
"@progress/kendo-licensing": "^1.4.0",
|
|
43
|
-
"@progress/kendo-angular-buttons": "18.1.1-develop.
|
|
44
|
-
"@progress/kendo-angular-common": "18.1.1-develop.
|
|
45
|
-
"@progress/kendo-angular-utils": "18.1.1-develop.
|
|
46
|
-
"@progress/kendo-angular-intl": "18.1.1-develop.
|
|
47
|
-
"@progress/kendo-angular-l10n": "18.1.1-develop.
|
|
48
|
-
"@progress/kendo-angular-icons": "18.1.1-develop.
|
|
49
|
-
"@progress/kendo-angular-popup": "18.1.1-develop.
|
|
50
|
-
"@progress/kendo-angular-navigation": "18.1.1-develop.
|
|
43
|
+
"@progress/kendo-angular-buttons": "18.1.1-develop.2",
|
|
44
|
+
"@progress/kendo-angular-common": "18.1.1-develop.2",
|
|
45
|
+
"@progress/kendo-angular-utils": "18.1.1-develop.2",
|
|
46
|
+
"@progress/kendo-angular-intl": "18.1.1-develop.2",
|
|
47
|
+
"@progress/kendo-angular-l10n": "18.1.1-develop.2",
|
|
48
|
+
"@progress/kendo-angular-icons": "18.1.1-develop.2",
|
|
49
|
+
"@progress/kendo-angular-popup": "18.1.1-develop.2",
|
|
50
|
+
"@progress/kendo-angular-navigation": "18.1.1-develop.2",
|
|
51
51
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"tslib": "^2.3.1",
|
|
55
|
-
"@progress/kendo-angular-schematics": "18.1.1-develop.
|
|
55
|
+
"@progress/kendo-angular-schematics": "18.1.1-develop.2",
|
|
56
56
|
"@progress/kendo-common": "^1.0.1",
|
|
57
57
|
"@progress/kendo-date-math": "^1.1.0",
|
|
58
58
|
"@progress/kendo-dateinputs-common": "^0.4.1"
|