@syncfusion/ej2-calendars 28.2.3 → 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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 28.2.3
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.1.39",
3
+ "_id": "@syncfusion/ej2-calendars@28.2.7",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-aUzCpwwRK5XWWssVF+GjqDuo+b6zdCZvMAe2dvDGhb5iERjrAvHONsbomAogMjHSZEjJnRGCEoA0wLcrCMOr9w==",
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.1.39.tgz",
35
- "_shasum": "4157a9cffcd7a839d122aee106a75a947d0482ac",
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.3",
47
- "@syncfusion/ej2-buttons": "~28.2.3",
48
- "@syncfusion/ej2-inputs": "~28.2.3",
46
+ "@syncfusion/ej2-base": "~28.2.9",
47
+ "@syncfusion/ej2-buttons": "~28.2.7",
48
+ "@syncfusion/ej2-inputs": "~28.2.9",
49
49
  "@syncfusion/ej2-lists": "~28.2.3",
50
- "@syncfusion/ej2-popups": "~28.2.3"
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.3",
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();
@@ -295,7 +295,9 @@ var MaskedDateTime = /** @class */ (function () {
295
295
  }
296
296
  else {
297
297
  this.isDayPart = false;
298
- this.dayTypeCount = this.isDateZero ? this.dayTypeCount + 1 : this.dayTypeCount;
298
+ if (!(this.dayTypeCount === 1 && this.isDateZero)) {
299
+ this.dayTypeCount += this.isDateZero ? 1 : 0;
300
+ }
299
301
  }
300
302
  break;
301
303
  }
@@ -349,7 +351,9 @@ var MaskedDateTime = /** @class */ (function () {
349
351
  newDateValue.setMonth(0);
350
352
  this.isLeadingZero = true;
351
353
  this.isMonthPart = false;
352
- this.monthTypeCount = this.isMonthZero ? this.monthTypeCount + 1 : this.monthTypeCount;
354
+ if (!(this.monthTypeCount === 1 && this.isMonthZero)) {
355
+ this.monthTypeCount += this.isMonthZero ? 1 : 0;
356
+ }
353
357
  }
354
358
  }
355
359
  else {