@syncfusion/ej2-calendars 25.2.4 → 25.2.7

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 : 25.2.4
3
+ * version : 25.2.7
4
4
  * Copyright Syncfusion Inc. 2001 - 2023. 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@25.2.3",
3
+ "_id": "@syncfusion/ej2-calendars@25.2.5",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-WmutovxHusYRebXLKfCcfoldiT+rpNUX6YUePMeJ6BMsGybQWZZaXYVHaju3rqMVlhTRPmDKgD8gKi/ttyol/Q==",
5
+ "_integrity": "sha512-HGiEhUeFlueKRI/SCBUnHrLzTJ4r+lKPikPc7+df0+64eM+WGtOfsfjFPq1XamTCju/vhX14/VGRUdlARFreDQ==",
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-25.2.3.tgz",
35
- "_shasum": "27b658923d8d5deb342e29969138c7245145adf1",
34
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-calendars/-/ej2-calendars-25.2.5.tgz",
35
+ "_shasum": "bf1931781dcaa7ab229cd7ff0c8280a13777c32b",
36
36
  "_spec": "@syncfusion/ej2-calendars@*",
37
37
  "_where": "/jenkins/workspace/elease-automation_release_25.1.1/packages/included",
38
38
  "author": {
@@ -43,11 +43,11 @@
43
43
  },
44
44
  "bundleDependencies": false,
45
45
  "dependencies": {
46
- "@syncfusion/ej2-base": "~25.2.3",
47
- "@syncfusion/ej2-buttons": "~25.2.4",
48
- "@syncfusion/ej2-inputs": "~25.2.3",
46
+ "@syncfusion/ej2-base": "~25.2.7",
47
+ "@syncfusion/ej2-buttons": "~25.2.7",
48
+ "@syncfusion/ej2-inputs": "~25.2.6",
49
49
  "@syncfusion/ej2-lists": "~25.2.3",
50
- "@syncfusion/ej2-popups": "~25.2.4"
50
+ "@syncfusion/ej2-popups": "~25.2.7"
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": "25.2.4",
83
+ "version": "25.2.7",
84
84
  "sideEffects": false
85
85
  }
@@ -479,6 +479,9 @@ var CalendarBase = /** @class */ (function (_super) {
479
479
  this.nextIcon = this.previousIcon = this.table = null;
480
480
  };
481
481
  CalendarBase.prototype.keyActionHandle = function (e, value, multiSelection) {
482
+ if (this.calendarElement === null && e.action === 'escape') {
483
+ return;
484
+ }
482
485
  var focusedDate = this.tableBodyElement.querySelector('tr td.e-focused-date');
483
486
  var selectedDate;
484
487
  if (multiSelection) {
@@ -633,7 +636,12 @@ var CalendarBase = /** @class */ (function (_super) {
633
636
  case 'tab':
634
637
  if ((this.getModuleName() === 'datepicker' || this.getModuleName() === 'datetimepicker') && e.target === this.todayElement) {
635
638
  e.preventDefault();
636
- this.element.focus();
639
+ if (this.isAngular) {
640
+ this.inputElement.focus();
641
+ }
642
+ else {
643
+ this.element.focus();
644
+ }
637
645
  this.hide();
638
646
  }
639
647
  break;
@@ -644,6 +652,11 @@ var CalendarBase = /** @class */ (function (_super) {
644
652
  this.hide();
645
653
  }
646
654
  break;
655
+ case 'escape':
656
+ if ((this.getModuleName() === 'datepicker' || this.getModuleName() === 'datetimepicker') && (e.target === this.headerTitleElement || e.target === this.previousIcon || e.target === this.nextIcon || e.target === this.todayElement)) {
657
+ this.hide();
658
+ }
659
+ break;
647
660
  }
648
661
  };
649
662
  CalendarBase.prototype.keyboardNavigate = function (number, currentView, e, max, min) {
@@ -1578,7 +1578,7 @@ var TimePicker = /** @class */ (function (_super) {
1578
1578
  break;
1579
1579
  }
1580
1580
  }
1581
- return this.prevValue;
1581
+ return this.getValue(date);
1582
1582
  };
1583
1583
  TimePicker.prototype.resetState = function () {
1584
1584
  this.removeSelection();
@@ -1865,7 +1865,7 @@ var TimePicker = /** @class */ (function (_super) {
1865
1865
  };
1866
1866
  TimePicker.prototype.updateInput = function (isUpdate, date) {
1867
1867
  if (isUpdate) {
1868
- this.prevValue = this.getValue(date);
1868
+ this.prevValue = this.getValue(this.prevDate);
1869
1869
  }
1870
1870
  this.prevDate = this.valueWithMinutes = date;
1871
1871
  if ((typeof date !== 'number') || (this.value && +new Date(+this.value).setMilliseconds(0)) !== +date) {