@syncfusion/ej2-calendars 28.2.7 → 28.2.11

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.7
3
+ * version : 28.2.11
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",
3
+ "_id": "@syncfusion/ej2-calendars@28.2.9",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-AJidipPF63JKP+LytCxundrrCa0tzCnxst6ROzgRISzy16tofXdAr+748QH21S8oDpBIYmIlfGpFleGDudSVEA==",
5
+ "_integrity": "sha512-xBMuaPDG/UZbCwpyiE+HinHcj/yvpYTkLM5Qbfstt6CNCEAYLPuyM2rsRT+5Rr1GR1TXkQ1VnJ+YLJ/MeupLeQ==",
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.3.tgz",
35
- "_shasum": "4a8b47031f63c12e3c9420398ea21e90181f663b",
34
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-calendars/-/ej2-calendars-28.2.9.tgz",
35
+ "_shasum": "aa9b8be55d980337d8923bbad8297e15436f26fa",
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.5",
46
+ "@syncfusion/ej2-base": "~28.2.9",
47
47
  "@syncfusion/ej2-buttons": "~28.2.7",
48
- "@syncfusion/ej2-inputs": "~28.2.3",
48
+ "@syncfusion/ej2-inputs": "~28.2.11",
49
49
  "@syncfusion/ej2-lists": "~28.2.3",
50
- "@syncfusion/ej2-popups": "~28.2.6"
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.7",
83
+ "version": "28.2.11",
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;
@@ -1054,7 +1059,7 @@ var DateRangePicker = /** @class */ (function (_super) {
1054
1059
  this.updateHiddenInput();
1055
1060
  };
1056
1061
  DateRangePicker.prototype.getStartEndDate = function (date, isEnd) {
1057
- if (this.currentView() === 'Year' && !isNullOrUndefined(date)) {
1062
+ if ((this.currentView() === 'Year' && !isNullOrUndefined(date)) || this.depth === 'Year') {
1058
1063
  return new Date(date.getFullYear(), date.getMonth() + (isEnd ? 1 : 0), isEnd ? 0 : 1);
1059
1064
  }
1060
1065
  else if (this.currentView() === 'Decade' && !isNullOrUndefined(date)) {
@@ -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();
@@ -35,7 +35,7 @@ var MaskedDateTime = /** @class */ (function () {
35
35
  this.isNavigate = false;
36
36
  this.navigated = false;
37
37
  this.isBlur = false;
38
- this.formatRegex = /EEEEE|EEEE|EEE|EE|E|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yyy|yy|y|HH|H|hh|h|mm|m|fff|ff|f|aa|a|ss|s|zzzz|zzz|zz|z|'[^']*'|'[^']*'/g;
38
+ this.formatRegex = /EEEEE|EEEE|EEE|EE|E|cccc|ccc|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yyy|yy|y|HH|H|hh|h|mm|m|fff|ff|f|aa|a|ss|s|zzzz|zzz|zz|z|'[^']*'|'[^']*'/g;
39
39
  this.isDeletion = false;
40
40
  this.isShortYear = false;
41
41
  this.isDeleteKey = false;
@@ -536,9 +536,11 @@ var MaskedDateTime = /** @class */ (function () {
536
536
  case 'E':
537
537
  case 'EE':
538
538
  case 'EEE':
539
+ case 'ccc':
539
540
  result = proxy.isDayPart && proxy.isMonthPart && proxy.isYearPart ? daysAbbreviated[dayKeyAbbreviated[proxy.maskDateValue.getDay()]].toString() : proxy.defaultConstant['dayOfTheWeek'].toString();
540
541
  break;
541
542
  case 'EEEE':
543
+ case 'cccc':
542
544
  result = proxy.isDayPart && proxy.isMonthPart && proxy.isYearPart ? daysWide[dayKeyWide[proxy.maskDateValue.getDay()]].toString() : proxy.defaultConstant['dayOfTheWeek'].toString();
543
545
  break;
544
546
  case 'EEEEE':
@@ -1167,8 +1167,9 @@ var TimePicker = /** @class */ (function (_super) {
1167
1167
  }
1168
1168
  else {
1169
1169
  if (!isNavigation) {
1170
- if ((this.prevValue !== this.inputElement.value) || isNullOrUndefined(this.checkDateValue(this.value))) {
1171
- this.valueProcess(event, this.compareFormatChange(this.inputElement.value));
1170
+ var value = this.compareFormatChange(this.inputElement.value);
1171
+ if ((+this.prevDate !== +value) || isNullOrUndefined(this.checkDateValue(this.value))) {
1172
+ this.valueProcess(event, value);
1172
1173
  }
1173
1174
  }
1174
1175
  else {