@syncfusion/ej2-calendars 28.2.7 → 28.2.9
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.
- package/README.md +1 -1
- package/dist/ej2-calendars.min.js +2 -2
- package/dist/ej2-calendars.umd.min.js +2 -2
- package/dist/ej2-calendars.umd.min.js.map +1 -1
- package/dist/es6/ej2-calendars.es2015.js +10 -5
- package/dist/es6/ej2-calendars.es2015.js.map +1 -1
- package/dist/es6/ej2-calendars.es5.js +9 -4
- package/dist/es6/ej2-calendars.es5.js.map +1 -1
- package/dist/global/ej2-calendars.min.js +2 -2
- package/dist/global/ej2-calendars.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +8 -8
- package/src/daterangepicker/daterangepicker.js +9 -4
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 28.2.
|
|
3
|
+
* version : 28.2.9
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2024. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-calendars@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-calendars@28.2.
|
|
3
|
+
"_id": "@syncfusion/ej2-calendars@28.2.7",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-481Z4WY5kD6GNJ5+fZE61W1+GQkYEMil203jutDd6d+y8bg60E23RErctH4ey0YXO6YLK0MLoUUgVdaNhS4Ebw==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-calendars",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"/@syncfusion/ej2-schedule",
|
|
32
32
|
"/@syncfusion/ej2-vue-calendars"
|
|
33
33
|
],
|
|
34
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-calendars/-/ej2-calendars-28.2.
|
|
35
|
-
"_shasum": "
|
|
34
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-calendars/-/ej2-calendars-28.2.7.tgz",
|
|
35
|
+
"_shasum": "01fee660caff9ed4666ebbf196083ae3c2ea2a97",
|
|
36
36
|
"_spec": "@syncfusion/ej2-calendars@*",
|
|
37
37
|
"_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
|
|
38
38
|
"author": {
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
},
|
|
44
44
|
"bundleDependencies": false,
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@syncfusion/ej2-base": "~28.2.
|
|
46
|
+
"@syncfusion/ej2-base": "~28.2.9",
|
|
47
47
|
"@syncfusion/ej2-buttons": "~28.2.7",
|
|
48
|
-
"@syncfusion/ej2-inputs": "~28.2.
|
|
48
|
+
"@syncfusion/ej2-inputs": "~28.2.9",
|
|
49
49
|
"@syncfusion/ej2-lists": "~28.2.3",
|
|
50
|
-
"@syncfusion/ej2-popups": "~28.2.
|
|
50
|
+
"@syncfusion/ej2-popups": "~28.2.9"
|
|
51
51
|
},
|
|
52
52
|
"deprecated": false,
|
|
53
53
|
"description": "A complete package of date or time components with built-in features such as date formatting, inline editing, multiple (range) selection, range restriction, month and year selection, strict mode, and globalization.",
|
|
@@ -80,6 +80,6 @@
|
|
|
80
80
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
81
81
|
},
|
|
82
82
|
"typings": "index.d.ts",
|
|
83
|
-
"version": "28.2.
|
|
83
|
+
"version": "28.2.9",
|
|
84
84
|
"sideEffects": false
|
|
85
85
|
}
|
|
@@ -982,6 +982,11 @@ var DateRangePicker = /** @class */ (function (_super) {
|
|
|
982
982
|
var dateOptions = { format: this.formatString, type: 'date', skeleton: 'yMd' };
|
|
983
983
|
var startDate = this.globalize.parseDate(this.getAmPmValue(range[0]).trim(), dateOptions);
|
|
984
984
|
var endDate = this.globalize.parseDate(this.getAmPmValue(range[1]).trim(), dateOptions);
|
|
985
|
+
if (this.start !== 'Decade' && this.start === 'Year' && this.depth !== 'Month') {
|
|
986
|
+
if (this.inputElement.defaultValue !== value) {
|
|
987
|
+
endDate = this.getStartEndDate(endDate, true);
|
|
988
|
+
}
|
|
989
|
+
}
|
|
985
990
|
if (!isNullOrUndefined(startDate) && !isNaN(+startDate) && !isNullOrUndefined(endDate) && !isNaN(+endDate)) {
|
|
986
991
|
var prevStartVal = this.startValue;
|
|
987
992
|
this.startValue = startDate;
|
|
@@ -1748,10 +1753,10 @@ var DateRangePicker = /** @class */ (function (_super) {
|
|
|
1748
1753
|
}
|
|
1749
1754
|
var y = date.getFullYear();
|
|
1750
1755
|
var m = date.getMonth();
|
|
1751
|
-
var firstDay = isValue ? new Date(y, m, startDateValue.getDate(), startDateValue.getHours(), startDateValue.getMinutes(), startDateValue.getSeconds()) : new Date(y, m, 1);
|
|
1752
|
-
var lastDay = isValue ? new Date(y, m, endDateValue.getDate(), endDateValue.getHours(), endDateValue.getMinutes(), endDateValue.getSeconds()) : new Date(y, m + 1, 0);
|
|
1753
|
-
var firstMonth = isValue ? new Date(y, startDateValue.getMonth(), startDateValue.getDate(), startDateValue.getHours(), startDateValue.getMinutes(), startDateValue.getSeconds()) : new Date(y, 0, 1);
|
|
1754
|
-
var lastMonth = isValue ? new Date(y, endDateValue.getMonth(), endDateValue.getDate(), endDateValue.getHours(), endDateValue.getMinutes(), endDateValue.getSeconds()) : new Date(y, 11, 31);
|
|
1756
|
+
var firstDay = isValue && this.start !== 'Year' ? new Date(y, m, startDateValue.getDate(), startDateValue.getHours(), startDateValue.getMinutes(), startDateValue.getSeconds()) : new Date(y, m, 1);
|
|
1757
|
+
var lastDay = isValue && this.start !== 'Year' ? new Date(y, m, endDateValue.getDate(), endDateValue.getHours(), endDateValue.getMinutes(), endDateValue.getSeconds()) : new Date(y, m + 1, 0);
|
|
1758
|
+
var firstMonth = isValue && this.start !== 'Year' ? new Date(y, startDateValue.getMonth(), startDateValue.getDate(), startDateValue.getHours(), startDateValue.getMinutes(), startDateValue.getSeconds()) : new Date(y, 0, 1);
|
|
1759
|
+
var lastMonth = isValue && this.start !== 'Year' ? new Date(y, endDateValue.getMonth(), endDateValue.getDate(), endDateValue.getHours(), endDateValue.getMinutes(), endDateValue.getSeconds()) : new Date(y, 11, 31);
|
|
1755
1760
|
if (!isNullOrUndefined(this.endValue) && !isNullOrUndefined(this.startValue)) {
|
|
1756
1761
|
if (!this.isMobile || this.isMobile && !this.endButton.element.classList.contains(ACTIVE)) {
|
|
1757
1762
|
this.removeSelection();
|